[PATCHSET sched_ext/for-7.4] sched_ext: Sync tools headers from the scx repo
From: Tejun Heo
Date: Tue Sep 29 2026 - 20:05:32 EST
Hello,
The shared BPF headers in tools/sched_ext/include and the scx repo's
scheds/include have drifted apart since the last sync: the kernel gained a
size argument on scx_bpf_cid_topo(), scx_bpf_cid_node(), the lazy preemption
and proxy-exec flags and SCX_OPS_OPEN_OPTS(), while scx grew the cmask
helpers the cid-form schedulers use and the compat wrappers for the kfuncs
whose prototypes changed. This patchset copies the merged result back in.
The scx side is https://github.com/sched-ext/scx/pull/3856.
Patch 1 syncs the four shared headers and adds the two files they now depend
on, const-defs.h and features.bpf.h, and converts scx_qmap's cmask calls to
the three-operand form. Patch 2 syncs the four autogen enum headers, whose
task state lookups had been under a removed enum type.
Verified by building the kernel, tools/sched_ext and the sched_ext selftests
against the patched headers, and by a per-file diff showing every shared
file identical to the scx tree.
Based on sched_ext/for-7.4 (c6fe97c34a1a).
This patchset contains the following 2 patches.
0001 sched_ext: Sync common and compat headers from the scx repo
0002 sched_ext: Sync tools autogen enum headers from the scx repo
The patchset is also available in the following git branch:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git scx-tools-header-sync
diffstat follows. Thanks.
tools/sched_ext/include/scx/cid.bpf.h | 689 ++++++++++++++++++++----
tools/sched_ext/include/scx/common.bpf.h | 90 +++-
tools/sched_ext/include/scx/compat.bpf.h | 63 +++
tools/sched_ext/include/scx/compat.h | 15 +-
tools/sched_ext/include/scx/const-defs.h | 20 +
tools/sched_ext/include/scx/enum_defs.autogen.h | 3 +
tools/sched_ext/include/scx/enums.autogen.bpf.h | 15 +-
tools/sched_ext/include/scx/enums.autogen.h | 20 +-
tools/sched_ext/include/scx/enums_abi.autogen.h | 6 +
tools/sched_ext/include/scx/features.bpf.h | 29 +
tools/sched_ext/scx_qmap.bpf.c | 14 +-
11 files changed, 837 insertions(+), 127 deletions(-)
--
tejun