]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Update selftests to drop ops.cpu_acquire/release()
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Sun, 15 Mar 2026 08:24:41 +0000 (16:24 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 15 Mar 2026 08:54:05 +0000 (22:54 -1000)
commitf96bc0fa92be8dc0ec97bbe5bec6d5df26f9585b
treea87bb879c9b1aea16e82500f400c2abfbd6aed42
parent6712c4fefca0422851b71d1a58a32ea03f69310f
sched_ext: Update selftests to drop ops.cpu_acquire/release()

ops.cpu_acquire/release() are deprecated by commit a3f5d4822253
("sched_ext: Allow scx_bpf_reenqueue_local() to be called from
anywhere") in favor of handling CPU preemption via the sched_switch
tracepoint.

In the maximal selftest, replace the cpu_acquire/release stubs with a
minimal sched_switch TP program. Attach all non-struct_ops programs
(including the new TP) via maximal__attach() after disabling auto-attach
for the maximal_ops struct_ops map, which is managed manually in run().

Apply the same fix to reload_loop, which also uses the maximal skeleton.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/maximal.bpf.c
tools/testing/selftests/sched_ext/maximal.c
tools/testing/selftests/sched_ext/reload_loop.c