summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/amd-pstate/tbench.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/tbench.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/tbench.sh')
-rwxr-xr-xtools/testing/selftests/amd-pstate/tbench.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/amd-pstate/tbench.sh b/tools/testing/selftests/amd-pstate/tbench.sh
index 4d2e8ce2da3b..2a98d9c9202e 100755
--- a/tools/testing/selftests/amd-pstate/tbench.sh
+++ b/tools/testing/selftests/amd-pstate/tbench.sh
@@ -68,7 +68,7 @@ run_tbench()
printf "Test tbench for $1 #$2 time_limit: $TIME_LIMIT procs_num: $PROCESS_NUM\n"
tbench_srv > /dev/null 2>&1 &
- perf stat -a --per-socket -I 1000 -e power/energy-pkg/ tbench -t $TIME_LIMIT $PROCESS_NUM > $OUTFILE_TBENCH-perf-$1-$2.log 2>&1
+ $PERF stat -a --per-socket -I 1000 -e power/energy-pkg/ tbench -t $TIME_LIMIT $PROCESS_NUM > $OUTFILE_TBENCH-perf-$1-$2.log 2>&1
pid=`pidof tbench_srv`
kill $pid