about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/Makefile
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2020-07-06 10:21:35 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-07-06 10:21:35 +0200
commit8f4632deb3545b2949cec5454afc3cb21a0024ea (patch)
tree2c2336e7d2c415312b5a9cd0595069d12dbecd98 /sysdeps/unix/sysv/linux/Makefile
parent6e29cb3f61ff5432c78a1c84b0d9b123a350ab36 (diff)
downloadglibc-8f4632deb3545b2949cec5454afc3cb21a0024ea.tar.gz
glibc-8f4632deb3545b2949cec5454afc3cb21a0024ea.tar.xz
glibc-8f4632deb3545b2949cec5454afc3cb21a0024ea.zip
Linux: rseq registration tests
These tests validate that rseq is registered from various execution
contexts (main thread, destructor, other threads, other threads created
from destructor, forked process (without exec), pthread_atfork handlers,
pthread setspecific destructors, signal handlers, atexit handlers).

tst-rseq.c only links against libc.so, testing registration of rseq in
a non-multithreaded environment.

tst-rseq-nptl.c also links against libpthread.so, testing registration
of rseq in a multithreaded environment.

See the Linux kernel selftests for extensive rseq stress-tests.
Diffstat (limited to 'sysdeps/unix/sysv/linux/Makefile')
-rw-r--r--sysdeps/unix/sysv/linux/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index e855db2cb9..2ee83e88d7 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -100,7 +100,11 @@ tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \
 	 test-errno-linux tst-memfd_create tst-mlock2 tst-pkey \
 	 tst-rlimit-infinity tst-ofdlocks tst-gettid tst-gettid-kill \
 	 tst-tgkill
-tests-internal += tst-ofdlocks-compat tst-sigcontext-get_pc
+
+# tst-rseq is an internal test because it requires a definition of __NR_rseq
+# from the internal system call list.
+tests-internal += tst-ofdlocks-compat tst-sigcontext-get_pc \
+		  tst-rseq
 
 CFLAGS-tst-sigcontext-get_pc.c = -fasynchronous-unwind-tables
 
@@ -301,4 +305,8 @@ endif
 
 ifeq ($(subdir),nptl)
 tests += tst-align-clone tst-getpid1
+
+# tst-rseq-nptl is an internal test because it requires a definition of
+# __NR_rseq from the internal system call list.
+tests-internal += tst-rseq-nptl
 endif