我要评分
获取效率
正确性
完整性
易理解

Installing A-FOT

A-FOT is a tool used to improve the usability of the automatic FDO feature of GCC for openEuler. It can be independently installed on worker nodes. It can be used during the compilation stage.

Prerequisites

The environment must meet the following requirements:
  • Architecture: Kunpeng Arm
  • OS: openEuler 22.03 LTS, openEuler 22.03 LTS SP1, openEuler 22.03 LTS SP2, or openEuler 22.03 LTS SP3
  • Compiler: GCC for openEuler 2.3.2 or later
  • Software package: perf

Installing the Tool

  1. Install the A-FOT tool.
    • Only openEuler 22.03 LTS supports tool installation using the Yum repository.
      yum install -y A-FOT 
    • For other OSs, you can pull the remote branch. After pulling, an A-FOT directory will be created in the current directory, and A-FOT can be used directly.
      git clone https://gitee.com/openeuler/A-FOT.git 
  2. Install the perf dependency.
    • Use Yum to install the dependency after configuring a network or local repository.
    • Install the RPM package. (Download perf-5.10.0-60.18.0.50.oe2203.aarch64.rpm.)
      rpm -ivh perf-5.10.0-60.18.0.50.oe2203.aarch64.rpm

      openEuler 22.03 LTS is used as an example. For other openEuler OSs, visit https://mirrors.huaweicloud.com/openeuler/OS version/everything/aarch64/Packages/ to search for and download the perf software package.

      Replace OS version with a specific version.

  3. After A-FOT is installed, refer to A-FOT Commands to use the tool.