[PATCH 2/4] sched_ext: Sync tools autogen enum lookup tables from the scx repo
From: Tejun Heo
Date: Fri Oct 23 2026 - 19:22:42 EST
Sync the two enum lookup tables, enums.autogen.h and enums.autogen.bpf.h,
with the scx repo at a094b6ec68c9 ("scheds/include: Sync with kernel
sched_ext/for-7.5 (b1c2a6b0d90d)").
The kernel copy gains SCX_ENQ_CPU_SELECTED, which scx added in f2fd24198edc
("scheds/include: Add SCX_ENQ_CPU_SELECTED to the enum tables"). The flag's
value changed in 376f8963bbda ("sched: Re-arrange the {EN,DE}QUEUE flags"),
so BPF code should read it from the running kernel.
ebf993609d70 ("sched_ext: Regenerate tools autogen enum headers")
regenerated the other two tables, enum_defs.autogen.h and
enums_abi.autogen.h, from this tree's vmlinux.h. They are newer than scx's
copies and stay as they are.
Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
---
tools/sched_ext/include/scx/enums.autogen.bpf.h | 3 +++
tools/sched_ext/include/scx/enums.autogen.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/tools/sched_ext/include/scx/enums.autogen.bpf.h b/tools/sched_ext/include/scx/enums.autogen.bpf.h
index d0c37018659e..db23be9cc88b 100644
--- a/tools/sched_ext/include/scx/enums.autogen.bpf.h
+++ b/tools/sched_ext/include/scx/enums.autogen.bpf.h
@@ -130,6 +130,9 @@ const volatile u64 __SCX_ENQ_WAKEUP __weak;
const volatile u64 __SCX_ENQ_HEAD __weak;
#define SCX_ENQ_HEAD __SCX_ENQ_HEAD
+const volatile u64 __SCX_ENQ_CPU_SELECTED __weak;
+#define SCX_ENQ_CPU_SELECTED __SCX_ENQ_CPU_SELECTED
+
const volatile u64 __SCX_ENQ_PREEMPT __weak;
#define SCX_ENQ_PREEMPT __SCX_ENQ_PREEMPT
diff --git a/tools/sched_ext/include/scx/enums.autogen.h b/tools/sched_ext/include/scx/enums.autogen.h
index c4a7260f0983..369f8d88c7db 100644
--- a/tools/sched_ext/include/scx/enums.autogen.h
+++ b/tools/sched_ext/include/scx/enums.autogen.h
@@ -48,6 +48,7 @@
SCX_ENUM_SET(skel, scx_kick_flags, SCX_KICK_ALL_FLAGS); \
SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_WAKEUP); \
SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_HEAD); \
+ SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_CPU_SELECTED); \
SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_PREEMPT); \
SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_PREEMPT_LAZY); \
SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_IMMED); \
--
2.56.0