]> sourceware.org Git - glibc.git/commit
Linux: rseq registration tests
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 Jul 2020 08:21:35 +0000 (10:21 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 6 Jul 2020 08:21:35 +0000 (10:21 +0200)
commit8f4632deb3545b2949cec5454afc3cb21a0024ea
tree2c2336e7d2c415312b5a9cd0595069d12dbecd98
parent6e29cb3f61ff5432c78a1c84b0d9b123a350ab36
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.
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-rseq-nptl.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq.h [new file with mode: 0644]
This page took 0.042733 seconds and 5 git commands to generate.