]> git.ipfire.org Git - thirdparty/glibc.git/commit
tests: Verify inheritance of cpu affinity
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 16 Dec 2024 13:14:09 +0000 (08:14 -0500)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 9 Jan 2025 15:51:38 +0000 (10:51 -0500)
commite41aabcc93edd6c9a6acb15212b2783d8a7ec5a3
tree59c38ffb6d10a0580266a0bf249ea0ad2a0dc4fe
parent82688ca3107c93d9eba6440981e473d1877b6281
tests: Verify inheritance of cpu affinity

Add a couple of tests to verify that CPU affinity set using
sched_setaffinity and pthread_setaffinity_np are inherited by a child
process and child thread.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
nptl/Makefile
nptl/tst-pthread-affinity-inheritance.c [new file with mode: 0644]
nptl/tst-skeleton-affinity-inheritance.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-sched-affinity-inheritance.c [new file with mode: 0644]