summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sched_ext/Makefile
diff options
context:
space:
mode:
authorzhidao su <suzhidao@xiaomi.com>2026-03-22 15:35:33 +0800
committerTejun Heo <tj@kernel.org>2026-03-22 14:29:42 -1000
commitc50dcf533149e313a61d483769eb48682a1b0cdd (patch)
treea9564638429cef725bf39c47339f1d70add259e6 /tools/testing/selftests/sched_ext/Makefile
parent76edc2761ab8bd27fe4c4b8b2fb71baefc4a31e8 (diff)
downloadlwn-c50dcf533149e313a61d483769eb48682a1b0cdd.tar.gz
lwn-c50dcf533149e313a61d483769eb48682a1b0cdd.zip
selftests/sched_ext: Add tests for SCX_ENQ_IMMED and scx_bpf_dsq_reenq()
Add three selftests covering features introduced in v7.1: - dsq_reenq: Verify scx_bpf_dsq_reenq() on user DSQs triggers ops.enqueue() with SCX_ENQ_REENQ and SCX_TASK_REENQ_KFUNC in p->scx.flags. - enq_immed: Verify SCX_OPS_ALWAYS_ENQ_IMMED slow path where tasks dispatched to a busy CPU's local DSQ are re-enqueued through ops.enqueue() with SCX_TASK_REENQ_IMMED. - consume_immed: Verify SCX_ENQ_IMMED via the consume path using scx_bpf_dsq_move_to_local___v2() with explicit SCX_ENQ_IMMED. All three tests skip gracefully on kernels that predate the required features by checking availability via __COMPAT_has_ksym() / __COMPAT_read_enum() before loading. Signed-off-by: zhidao su <suzhidao@xiaomi.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/sched_ext/Makefile')
-rw-r--r--tools/testing/selftests/sched_ext/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/sched_ext/Makefile b/tools/testing/selftests/sched_ext/Makefile
index a3bbe2c7911b..84e4f69b8833 100644
--- a/tools/testing/selftests/sched_ext/Makefile
+++ b/tools/testing/selftests/sched_ext/Makefile
@@ -162,8 +162,11 @@ endef
all_test_bpfprogs := $(foreach prog,$(wildcard *.bpf.c),$(INCLUDE_DIR)/$(patsubst %.c,%.skel.h,$(prog)))
auto-test-targets := \
+ consume_immed \
create_dsq \
dequeue \
+ dsq_reenq \
+ enq_immed \
enq_last_no_enq_fails \
ddsp_bogus_dsq_fail \
ddsp_vtimelocal_fail \