]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/sched_ext: Verify nohz_full tick behavior
authorAndrea Righi <arighi@nvidia.com>
Wed, 8 Jul 2026 07:46:49 +0000 (09:46 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 8 Jul 2026 18:29:43 +0000 (08:29 -1000)
commitcfe950d79f524e72bc263f2b153a6d905a75a794
tree448511c99630b66fb6820a174d6158b189e0318a
parent4ec10f38ff901dc10503d57cbdcf941248419ac1
selftests/sched_ext: Verify nohz_full tick behavior

Finite-slice EXT tasks need the periodic scheduler tick to expire their
slices even when nohz_full is enabled.

Add a regression test that selects a nohz_full CPU and exercises both
infinite-to-finite and finite-to-finite slice transitions across an idle
interval. For each finite task, verify that its ops.tick() callback is
invoked.

Skip the test when an allowed nohz_full CPU and a separate housekeeping
CPU are not available.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/Makefile
tools/testing/selftests/sched_ext/nohz_tick.bpf.c [new file with mode: 0644]
tools/testing/selftests/sched_ext/nohz_tick.c [new file with mode: 0644]