summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/amd-pstate/run.sh
diff options
context:
space:
mode:
authorSwapnil Sapkal <swapnil.sapkal@amd.com>2023-10-12 09:32:24 +0000
committerShuah Khan <skhan@linuxfoundation.org>2023-10-16 13:06:50 -0600
commit27aabb2c4390561538ca76a5bd418d95037f28d5 (patch)
tree99dda27fc5cc3f3b7c261e8352d3d74d82c127d0 /tools/testing/selftests/amd-pstate/run.sh
parent508934b5d15ab79fd5895cc2a6063bc9d95f6a55 (diff)
selftests/amd-pstate: Fix broken paths to run workloads in amd-pstate-ut
In selftests/amd-pstate, tbench and gitsource microbenchmarks are used to compare the performance with different governors. In current implementation the relative path to run `amd_pstate_tracer.py` is broken. Fix this by using absolute paths. Signed-off-by: Swapnil Sapkal <swapnil.sapkal@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/amd-pstate/run.sh')
-rwxr-xr-xtools/testing/selftests/amd-pstate/run.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/testing/selftests/amd-pstate/run.sh b/tools/testing/selftests/amd-pstate/run.sh
index de4d8e9c9565..279d073c5728 100755
--- a/tools/testing/selftests/amd-pstate/run.sh
+++ b/tools/testing/selftests/amd-pstate/run.sh
@@ -8,9 +8,12 @@ else
FILE_MAIN=DONE
fi
-source basic.sh
-source tbench.sh
-source gitsource.sh
+SCRIPTDIR=`dirname "$0"`
+TRACER=$SCRIPTDIR/../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
+
+source $SCRIPTDIR/basic.sh
+source $SCRIPTDIR/tbench.sh
+source $SCRIPTDIR/gitsource.sh
# amd-pstate-ut only run on x86/x86_64 AMD systems.
ARCH=$(uname -m 2>/dev/null | sed -e 's/i.86/x86/' -e 's/x86_64/x86/')