]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
selftests/sched_ext: Add cyclic SCX_KICK_WAIT stress test
authorTejun Heo <tj@kernel.org>
Sun, 29 Mar 2026 00:18:56 +0000 (14:18 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 30 Mar 2026 18:37:55 +0000 (08:37 -1000)
commit090d34f0f0285124452373225bcc520a31e305e4
treeaf8c7ca6fb76ba4a75ef3478624a4a0e6ccec2a5
parent415cb193bb9736f0e830286c72a6fa8eb2a9cc5c
selftests/sched_ext: Add cyclic SCX_KICK_WAIT stress test

Add a test that creates a 3-CPU kick_wait cycle (A->B->C->A). A BPF
scheduler kicks the next CPU in the ring with SCX_KICK_WAIT on every
enqueue while userspace workers generate continuous scheduling churn via
sched_yield(). Without the preceding fix, this hangs the machine within seconds.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
Tested-by: Christian Loehle <christian.loehle@arm.com>
tools/testing/selftests/sched_ext/Makefile
tools/testing/selftests/sched_ext/cyclic_kick_wait.bpf.c [new file with mode: 0644]
tools/testing/selftests/sched_ext/cyclic_kick_wait.c [new file with mode: 0644]