Rate This Document
Findability
Accuracy
Completeness
Readability

Installing A-FOT

Download A-FOT code and modify compilation parameters to meet the automatic FDO requirements.

  1. Download A-FOT code from Gitee.
    1
    git clone https://gitee.com/openeuler/A-FOT.git
    

    If "SSL certificate problem: self signed certificate in certificate chain" is displayed when the A-FOT code is being downloaded, you can disable SSL verification to resolve this issue.
    1
    git config --global http.sslVerify false
    
    You can also use the Yum source to install A-FOT. In this method, the default installation path is /usr/bin/.
    1
    yum install A-FOT
    
  2. Modify compilation parameters.
    1. Open the following file:
      1
      vi A-FOT/auto_bolt.sh
      
    2. Press i to enter the insert mode and add the following contents to the file:
      1
      -fbolt-option=-reorder-blocks=cache+,-reorder-functions=hfsort,-split-all-cold,-split-eh,-dyno-stats
      

      The following figure shows the modification result:

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.