aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/tst-sched-affinity-inheritance.c
AgeCommit message (Collapse)AuthorFilesLines
2025-01-14affinity-inheritance: Overallocate CPU setsStefan Liebler1-3/+4
Some kernels on S390 appear to return a CPU affinity mask based on configured processors rather than the ones online. Overallocate the CPU set to match that, but operate only on the ones online. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Co-authored-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2025-01-09tests: Verify inheritance of cpu affinitySiddhesh Poyarekar1-0/+71
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>