summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/syscall_user_dispatch/Makefile
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@collabora.com>2020-11-27 22:32:36 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-12-02 17:07:56 +0300
commit179ef035992e89646e17138b18b130bb874b86bb (patch)
treea37dab221792cdf193fce9044badd19d13da9847 /tools/testing/selftests/syscall_user_dispatch/Makefile
parent11894468e39def270199f845b76df6c36d4ed133 (diff)
downloadlinux-179ef035992e89646e17138b18b130bb874b86bb.tar.xz
selftests: Add kselftest for syscall user dispatch
Implement functionality tests for syscall user dispatch. In order to make the test portable, refrain from open coding syscall dispatchers and calculating glibc memory ranges. Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Andy Lutomirski <luto@kernel.org> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20201127193238.821364-6-krisman@collabora.com
Diffstat (limited to 'tools/testing/selftests/syscall_user_dispatch/Makefile')
-rw-r--r--tools/testing/selftests/syscall_user_dispatch/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/syscall_user_dispatch/Makefile b/tools/testing/selftests/syscall_user_dispatch/Makefile
new file mode 100644
index 000000000000..8e15fa42bcda
--- /dev/null
+++ b/tools/testing/selftests/syscall_user_dispatch/Makefile
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0
+top_srcdir = ../../../..
+INSTALL_HDR_PATH = $(top_srcdir)/usr
+LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/
+
+CFLAGS += -Wall -I$(LINUX_HDR_PATH)
+
+TEST_GEN_PROGS := sud_test
+include ../lib.mk