public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests: resctrl: ignore builds for unsupported architectures
@ 2024-08-09  7:10 Muhammad Usama Anjum
  2024-08-09  7:23 ` Ilpo Järvinen
  0 siblings, 1 reply; 10+ messages in thread
From: Muhammad Usama Anjum @ 2024-08-09  7:10 UTC (permalink / raw)
  To: Fenghua Yu, Reinette Chatre, Shuah Khan, Shaopeng Tan
  Cc: Muhammad Usama Anjum, kernel, Shuah Khan, linux-kernel,
	linux-kselftest

This test doesn't have support for other architectures. Altough resctrl
is supported on x86 and ARM, but arch_supports_noncont_cat() shows that
only x86 for AMD and Intel are supported by the test. We get build
errors when built for ARM and ARM64.

Hence add support in the Makefile to build this suite only for x86 and
x86_64 architectures.

Fixes: b733143cc455 ("selftests/resctrl: Make resctrl_tests run using kselftest framework")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
---
 tools/testing/selftests/resctrl/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/resctrl/Makefile b/tools/testing/selftests/resctrl/Makefile
index f408bd6bfc3d4..d5cf96315ef9b 100644
--- a/tools/testing/selftests/resctrl/Makefile
+++ b/tools/testing/selftests/resctrl/Makefile
@@ -3,7 +3,9 @@
 CFLAGS = -g -Wall -O2 -D_FORTIFY_SOURCE=2
 CFLAGS += $(KHDR_INCLUDES)
 
+ifeq ($(ARCH),$(filter $(ARCH),x86 x86_64))
 TEST_GEN_PROGS := resctrl_tests
+endif
 
 LOCAL_HDRS += $(wildcard *.h)
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-13  8:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09  7:10 [PATCH] selftests: resctrl: ignore builds for unsupported architectures Muhammad Usama Anjum
2024-08-09  7:23 ` Ilpo Järvinen
2024-08-09  8:05   ` Muhammad Usama Anjum
2024-08-09  8:45     ` Ilpo Järvinen
2024-08-12 20:36       ` Reinette Chatre
2024-08-12 22:49       ` Shuah Khan
2024-08-13  0:05         ` Reinette Chatre
2024-08-13  7:39           ` Ilpo Järvinen
2024-08-13  8:27             ` Shuah Khan
2024-08-13  8:25           ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox