summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sched/Makefile
diff options
context:
space:
mode:
authorChris Hyser <chris.hyser@oracle.com>2021-03-24 17:40:16 -0400
committerPeter Zijlstra <peterz@infradead.org>2021-05-12 11:43:32 +0200
commit9f26990074931bbf797373e53104216059b300b1 (patch)
tree2480d66ce502b27c9fea2ce857870db532ad9898 /tools/testing/selftests/sched/Makefile
parent7ac592aa35a684ff1858fb9ec282886b9e3575ac (diff)
kselftest: Add test for core sched prctl interface
Provides a selftest and examples of using the interface. [peterz: updated to not use sched_debug] Signed-off-by: Chris Hyser <chris.hyser@oracle.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Don Hiatt <dhiatt@digitalocean.com> Tested-by: Hongyu Ning <hongyu.ning@linux.intel.com> Tested-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lkml.kernel.org/r/20210422123309.100860030@infradead.org
Diffstat (limited to 'tools/testing/selftests/sched/Makefile')
-rw-r--r--tools/testing/selftests/sched/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/sched/Makefile b/tools/testing/selftests/sched/Makefile
new file mode 100644
index 000000000000..10c72f14fea9
--- /dev/null
+++ b/tools/testing/selftests/sched/Makefile
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
+CLANG_FLAGS += -no-integrated-as
+endif
+
+CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -Wl,-rpath=./ \
+ $(CLANG_FLAGS)
+LDLIBS += -lpthread
+
+TEST_GEN_FILES := cs_prctl_test
+TEST_PROGS := cs_prctl_test
+
+include ../lib.mk