From 27aabb2c4390561538ca76a5bd418d95037f28d5 Mon Sep 17 00:00:00 2001 From: Swapnil Sapkal Date: Thu, 12 Oct 2023 09:32:24 +0000 Subject: 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 Reviewed-by: Mario Limonciello Signed-off-by: Shuah Khan --- tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/power') 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" -- cgit v1.2.3