|
Jiri Slaby |
221c28 |
From: Guillaume Tucker <guillaume.tucker@collabora.com>
|
|
Jiri Slaby |
221c28 |
Date: Sat, 4 Feb 2023 14:34:54 +0100
|
|
Jiri Slaby |
221c28 |
Subject: [PATCH] selftests: amd-pstate: fix TEST_FILES
|
|
Jiri Slaby |
221c28 |
References: bsc#1012628
|
|
Jiri Slaby |
221c28 |
Patch-mainline: 6.2.8
|
|
Jiri Slaby |
221c28 |
Git-commit: 2da789cda462bda93679f53ee38f9aa2309d47e8
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
[ Upstream commit 2da789cda462bda93679f53ee38f9aa2309d47e8 ]
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
Bring back the Python scripts that were initially added with
|
|
Jiri Slaby |
221c28 |
TEST_GEN_FILES but now with TEST_FILES to avoid having them deleted
|
|
Jiri Slaby |
221c28 |
when doing a clean. Also fix the way the architecture is being
|
|
Jiri Slaby |
221c28 |
determined as they should also be installed when ARCH=x86_64 is
|
|
Jiri Slaby |
221c28 |
provided explicitly. Then also append extra files to TEST_FILES and
|
|
Jiri Slaby |
221c28 |
TEST_PROGS with += so they don't get discarded.
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
Fixes: ba2d788aa873 ("selftests: amd-pstate: Trigger tbench benchmark and test cpus")
|
|
Jiri Slaby |
221c28 |
Fixes: a49fb7218ed8 ("selftests: amd-pstate: Don't delete source files via Makefile")
|
|
Jiri Slaby |
221c28 |
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
|
|
Jiri Slaby |
221c28 |
Acked-by: Huang Rui <ray.huang@amd.com>
|
|
Jiri Slaby |
221c28 |
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
|
|
Jiri Slaby |
221c28 |
Signed-off-by: Sasha Levin <sashal@kernel.org>
|
|
Jiri Slaby |
221c28 |
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
|
|
Jiri Slaby |
221c28 |
---
|
|
Jiri Slaby |
221c28 |
tools/testing/selftests/amd-pstate/Makefile | 13 +++++++++----
|
|
Jiri Slaby |
221c28 |
1 file changed, 9 insertions(+), 4 deletions(-)
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
diff --git a/tools/testing/selftests/amd-pstate/Makefile b/tools/testing/selftests/amd-pstate/Makefile
|
|
Jiri Slaby |
221c28 |
index 5fd1424d..c382f579 100644
|
|
Jiri Slaby |
221c28 |
--- a/tools/testing/selftests/amd-pstate/Makefile
|
|
Jiri Slaby |
221c28 |
+++ b/tools/testing/selftests/amd-pstate/Makefile
|
|
Jiri Slaby |
221c28 |
@@ -4,10 +4,15 @@
|
|
Jiri Slaby |
221c28 |
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
|
|
Jiri Slaby |
221c28 |
all:
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
-uname_M := $(shell uname -m 2>/dev/null || echo not)
|
|
Jiri Slaby |
221c28 |
-ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
|
|
Jiri Slaby |
221c28 |
+ARCH ?= $(shell uname -m 2>/dev/null || echo not)
|
|
Jiri Slaby |
221c28 |
+ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
-TEST_PROGS := run.sh
|
|
Jiri Slaby |
221c28 |
-TEST_FILES := basic.sh tbench.sh gitsource.sh
|
|
Jiri Slaby |
221c28 |
+ifeq (x86,$(ARCH))
|
|
Jiri Slaby |
221c28 |
+TEST_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
|
|
Jiri Slaby |
221c28 |
+TEST_FILES += ../../../power/x86/intel_pstate_tracer/intel_pstate_tracer.py
|
|
Jiri Slaby |
221c28 |
+endif
|
|
Jiri Slaby |
221c28 |
+
|
|
Jiri Slaby |
221c28 |
+TEST_PROGS += run.sh
|
|
Jiri Slaby |
221c28 |
+TEST_FILES += basic.sh tbench.sh gitsource.sh
|
|
Jiri Slaby |
221c28 |
|
|
Jiri Slaby |
221c28 |
include ../lib.mk
|
|
Jiri Slaby |
221c28 |
--
|
|
Jiri Slaby |
221c28 |
2.35.3
|
|
Jiri Slaby |
221c28 |
|