selftests/amd-pstate: Added option to provide perf binary path
authorSwapnil Sapkal <swapnil.sapkal@amd.com>
Thu, 12 Oct 2023 09:32:25 +0000 (09:32 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 16 Oct 2023 19:06:58 +0000 (13:06 -0600)
commit0996e6742399e56b547319c4b8061af79be071b2
treeb10e0e1256b9aaa9e96b73d4e08ba8381aa533ab
parent27aabb2c4390561538ca76a5bd418d95037f28d5
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>
tools/testing/selftests/amd-pstate/gitsource.sh
tools/testing/selftests/amd-pstate/run.sh
tools/testing/selftests/amd-pstate/tbench.sh