summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/amd-pstate/Makefile
diff options
context:
space:
mode:
authorMeng Li <li.meng@amd.com>2022-10-31 16:49:22 +0800
committerShuah Khan <skhan@linuxfoundation.org>2022-11-01 03:21:04 -0600
commitba2d788aa873da9c65ff067ca94665853eab95f0 (patch)
tree96e8f29b4608ad4ac34872a256f345a4392a8b23 /tools/testing/selftests/amd-pstate/Makefile
parente5df326817e97799fda8add1c0f486f3539d238c (diff)
selftests: amd-pstate: Trigger tbench benchmark and test cpus
Add tbench.sh trigger the tbench testing and monitor the cpu desire performance, frequency, load, power consumption and throughput etc. Signed-off-by: Meng Li <li.meng@amd.com> Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/amd-pstate/Makefile')
-rw-r--r--tools/testing/selftests/amd-pstate/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/testing/selftests/amd-pstate/Makefile b/tools/testing/selftests/amd-pstate/Makefile
index 6f4c7b01e3bb..cac8dedb7226 100644
--- a/tools/testing/selftests/amd-pstate/Makefile
+++ b/tools/testing/selftests/amd-pstate/Makefile
@@ -4,7 +4,15 @@
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
all:
+uname_M := $(shell uname -m 2>/dev/null || echo not)
+ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
+
+ifeq (x86,$(ARCH))
+TEST_GEN_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
+TEST_GEN_FILES += ../../../power/x86/intel_pstate_tracer/intel_pstate_tracer.py
+endif
+
TEST_PROGS := run.sh
-TEST_FILES := basic.sh
+TEST_FILES := basic.sh tbench.sh
include ../lib.mk