summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/amd-pstate/gitsource.sh
diff options
context:
space:
mode:
authorSwapnil Sapkal <swapnil.sapkal@amd.com>2023-10-12 12:32:25 +0300
committerShuah Khan <skhan@linuxfoundation.org>2023-10-16 22:06:58 +0300
commit0996e6742399e56b547319c4b8061af79be071b2 (patch)
treeb10e0e1256b9aaa9e96b73d4e08ba8381aa533ab /tools/testing/selftests/amd-pstate/gitsource.sh
parent27aabb2c4390561538ca76a5bd418d95037f28d5 (diff)
downloadlinux-0996e6742399e56b547319c4b8061af79be071b2.tar.xz
selftests/amd-pstate: Added option to provide perf binary path
In selftests/amd-pstate, distro `perf` is used to capture `perf stat` while running microbenchmarks. Distro `perf` is not working with upstream kernel. Fix this by providing an option to give the perf binary path. Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Swapnil Sapkal <swapnil.sapkal@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/amd-pstate/gitsource.sh')
-rwxr-xr-xtools/testing/selftests/amd-pstate/gitsource.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/amd-pstate/gitsource.sh b/tools/testing/selftests/amd-pstate/gitsource.sh
index ab195ddcba4d..4cde62f90468 100755
--- a/tools/testing/selftests/amd-pstate/gitsource.sh
+++ b/tools/testing/selftests/amd-pstate/gitsource.sh
@@ -88,7 +88,7 @@ run_gitsource()
BACKUP_DIR=$(pwd)
pushd $BACKUP_DIR > /dev/null 2>&1
cd $SCRIPTDIR/$git_name
- perf stat -a --per-socket -I 1000 -e power/energy-pkg/ /usr/bin/time -o $BACKUP_DIR/$OUTFILE_GIT.time-gitsource-$1-$2.log make test -j$MAKE_CPUS > $BACKUP_DIR/$OUTFILE_GIT-perf-$1-$2.log 2>&1
+ $PERF stat -a --per-socket -I 1000 -e power/energy-pkg/ /usr/bin/time -o $BACKUP_DIR/$OUTFILE_GIT.time-gitsource-$1-$2.log make test -j$MAKE_CPUS > $BACKUP_DIR/$OUTFILE_GIT-perf-$1-$2.log 2>&1
popd > /dev/null 2>&1
for job in `jobs -p`