From b28442ad491b4ddce952ce43d04d0a3cf6142248 Mon Sep 17 00:00:00 2001 From: Tianyou Li Date: Thu, 12 Jun 2025 12:37:38 +0800 Subject: [PATCH 1/2] Add perf-archive.sh to the default tools build target, remove the dependencies for kernel The RunScripts call will extract the perf-archive from the script resource directory to target, and configure the PATH to make sure the copied perf-archive script takes effect. --- tools/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 3a392fa9..874f2c3a 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -5,9 +5,9 @@ # default: tools -.PHONY: default tools async-profiler avx-turbo cpuid dmidecode ethtool fio ipmitool lshw lspci msr-tools pcm perf processwatch spectre-meltdown-checker sshpass stackcollapse-perf stress-ng sysstat tsc turbostat +.PHONY: default tools async-profiler avx-turbo cpuid dmidecode ethtool fio ipmitool lshw lspci msr-tools pcm perf perf-archive processwatch spectre-meltdown-checker sshpass stackcollapse-perf stress-ng sysstat tsc turbostat -tools: async-profiler avx-turbo cpuid dmidecode ethtool fio ipmitool lshw lspci msr-tools pcm spectre-meltdown-checker sshpass stackcollapse-perf stress-ng sysstat tsc turbostat +tools: async-profiler avx-turbo cpuid dmidecode ethtool fio ipmitool lshw lspci msr-tools pcm perf-archive spectre-meltdown-checker sshpass stackcollapse-perf stress-ng sysstat tsc turbostat mkdir -p bin cp -R async-profiler bin/ cp avx-turbo/avx-turbo bin/ @@ -169,7 +169,12 @@ perf: mkdir -p bin cp linux_perf/tools/perf/perf bin/ strip --strip-unneeded bin/perf - cp linux_perf/tools/perf/perf-archive.sh bin/perf-archive + # cp linux_perf/tools/perf/perf-archive.sh bin/perf-archive + # chmod +x bin/perf-archive + +perf-archive: + mkdir -p bin + cp perf-archive/perf-archive.sh bin/perf-archive chmod +x bin/perf-archive PROCESSWATCH_VERSION := "c394065" From 5d8b39e7195c5e62bde0e6700a37c4999e941c46 Mon Sep 17 00:00:00 2001 From: Tianyou Li Date: Thu, 12 Jun 2025 12:43:06 +0800 Subject: [PATCH 2/2] Format code style --- tools/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 874f2c3a..a248b167 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -169,9 +169,9 @@ perf: mkdir -p bin cp linux_perf/tools/perf/perf bin/ strip --strip-unneeded bin/perf - # cp linux_perf/tools/perf/perf-archive.sh bin/perf-archive - # chmod +x bin/perf-archive - +# cp linux_perf/tools/perf/perf-archive.sh bin/perf-archive +# chmod +x bin/perf-archive + perf-archive: mkdir -p bin cp perf-archive/perf-archive.sh bin/perf-archive