]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/sched_ext: Update test enq_select_cpu_fails
authorAndrea Righi <arighi@nvidia.com>
Wed, 21 May 2025 07:34:07 +0000 (09:34 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 21 May 2025 17:35:58 +0000 (07:35 -1000)
commit36adf6fe6cbe59a22f64c004b201685cb6f38c42
tree36e05a797c59149e56ac3cf8aef3fe1c04d9003f
parenta730e3f7a48bc591bfa838c5d922e5a80ea51738
selftests/sched_ext: Update test enq_select_cpu_fails

With commit 08699d20467b6 ("sched_ext: idle: Consolidate default idle
CPU selection kfuncs") allowing scx_bpf_select_cpu_dfl() to be invoked
from multiple contexts, update the test to validate that the kfunc
behaves correctly when used from ops.enqueue() and via BPF test_run.

Additionally, rename the test to enq_select_cpu, dropping "fails" from
the name, as the logic has now been inverted.

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/enq_select_cpu.bpf.c [new file with mode: 0644]
tools/testing/selftests/sched_ext/enq_select_cpu.c [new file with mode: 0644]
tools/testing/selftests/sched_ext/enq_select_cpu_fails.bpf.c [deleted file]
tools/testing/selftests/sched_ext/enq_select_cpu_fails.c [deleted file]