diff options
author | Swapnil Sapkal <swapnil.sapkal@amd.com> | 2023-10-12 12:32:24 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-10-16 22:06:50 +0300 |
commit | 27aabb2c4390561538ca76a5bd418d95037f28d5 (patch) | |
tree | 99dda27fc5cc3f3b7c261e8352d3d74d82c127d0 /tools/power | |
parent | 508934b5d15ab79fd5895cc2a6063bc9d95f6a55 (diff) | |
download | linux-27aabb2c4390561538ca76a5bd418d95037f28d5.tar.xz |
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/power')
-rwxr-xr-x | tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py b/tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py index 904df0ea0a1e..feb9f9421c7b 100755 --- a/tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py +++ b/tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py @@ -30,8 +30,7 @@ import getopt import Gnuplot from numpy import * from decimal import * -sys.path.append('../intel_pstate_tracer') -#import intel_pstate_tracer +sys.path.append(os.path.join(os.path.dirname(__file__), "..", "intel_pstate_tracer")) import intel_pstate_tracer as ipt __license__ = "GPL version 2" |