From d1d0e194d70fc95746da97d20c0b1942fecab95a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E5=BC=80=E5=AE=89?= Date: Mon, 1 Apr 2024 14:59:17 +0800 Subject: [PATCH] =?UTF-8?q?A-FOT=E5=AE=89=E8=A3=85=E6=8C=87=E5=AF=BC?= =?UTF-8?q?=E8=B5=84=E6=96=99=E8=A1=A5=E5=85=85=E4=BD=BF=E7=94=A8=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=BE=9D=E8=B5=96=20=E4=BF=AE=E6=94=B9clamAV,A-FOT?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/DevKitCLI/check_install_result.sh | 7 +++++++ component/DevKitCLI/install.sh | 2 +- component/clamAV/check_install_result.sh | 7 +++++++ component/clamAV/{build.sh => install.sh} | 0 ...46\214\207\345\257\274\350\257\264\346\230\216.md" | 11 ++++++++--- 5 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 component/DevKitCLI/check_install_result.sh create mode 100644 component/clamAV/check_install_result.sh rename component/clamAV/{build.sh => install.sh} (100%) diff --git a/component/DevKitCLI/check_install_result.sh b/component/DevKitCLI/check_install_result.sh new file mode 100644 index 0000000..adf662f --- /dev/null +++ b/component/DevKitCLI/check_install_result.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [[ -f ${HOME}/.local/DevKit-CLI-24.0.RC1-Linux-Kunpeng/devkit ]]; then + echo "true" +else + echo "false" +fi \ No newline at end of file diff --git a/component/DevKitCLI/install.sh b/component/DevKitCLI/install.sh index 39398b6..76865b3 100644 --- a/component/DevKitCLI/install.sh +++ b/component/DevKitCLI/install.sh @@ -1,7 +1,7 @@ #!/bin/bash cd /tmp/devkitdependencies/ echo "Decompress DevKit-CLI-24.0.RC1-Linux-Kunpeng.tar.gz to ${HOME}/.local" -tar -zxf /tmp/devkitdependencies/DevKit-CLI-24.0.RC1-Linux-Kunpeng.tar.gz -C ${HOME}/.local +tar --no-same-owner -zxf /tmp/devkitdependencies/DevKit-CLI-24.0.RC1-Linux-Kunpeng.tar.gz -C ${HOME}/.local echo "Decompress DevKit-CLI-24.0.RC1-Linux-Kunpeng.tar.gz to ${HOME}/.local finished." ln -s ${HOME}/.local/DevKit-CLI-24.0.RC1-Linux-Kunpeng/devkit /usr/local/bin echo "install DevkitCLI success." diff --git a/component/clamAV/check_install_result.sh b/component/clamAV/check_install_result.sh new file mode 100644 index 0000000..b3fc133 --- /dev/null +++ b/component/clamAV/check_install_result.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if which clamscan >/dev/null; then + echo "true" +else + echo "false" +fi \ No newline at end of file diff --git a/component/clamAV/build.sh b/component/clamAV/install.sh similarity index 100% rename from component/clamAV/build.sh rename to component/clamAV/install.sh diff --git "a/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" "b/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" index 9462b2a..25d4f72 100644 --- "a/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" +++ "b/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" @@ -10,10 +10,15 @@ A-FOT(automatic feedback-directed optimization tool)是一款用于提升编译 2.本工具目前仅支持单实例应用优化,即应用在执行时只有一个进程 3.用户需保证执行脚本启动的应用程序测试用例与实际生产环境行为相同,否则可能会导致负优化 -## 3.环境依赖 +## 3.环境依赖需要满足以下条件: -1.编译器: openEuler GCC 10.3.1 -2.架构: x86_64 aarch64 +1.编译器: GCC for openEuler2.3.2及以上 + +2.架构: 鲲鹏ARM + +3.操作系统PRETTY_NAME:openEuler 22.03 LTS、openEuler 22.03(LTS-SP1)、openEuler 22.03(LTS-SP2)、openEuler 22.03(LTS-SP3)、Ubuntu 18.04.4 LTS、Ubuntu 20.04.2 LTS、Kylin Linux Advanced Server V10(Tercel)、UOS 20 、UnionTech OS Server 20、CentOS Linux 7 (AltArch)。注:PRETTY_NAME为Centos Linux 7 (AltArch)操作系统的redhat-release值须是Centos Linux release 7.6.1810(Altarch) + +4.软件包:perf ## 4.安装 -- Gitee