]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext/include: Add __COMPAT_HAS_scx_bpf_select_cpu_and macro
authorTejun Heo <tj@kernel.org>
Sun, 8 Mar 2026 02:45:17 +0000 (16:45 -1000)
committerTejun Heo <tj@kernel.org>
Sun, 8 Mar 2026 08:45:12 +0000 (22:45 -1000)
commitc9c8546cdee64d3f1a54fe09cc2b8c1a8ea80c6d
tree08164a7222f8a715549860910051a84ae87df2d6
parent3691d380d5ca8c847c716327aad73a07307ec9c4
tools/sched_ext/include: Add __COMPAT_HAS_scx_bpf_select_cpu_and macro

scx_bpf_select_cpu_and() is now an inline wrapper so
bpf_ksym_exists(scx_bpf_select_cpu_and) no longer works. Add
__COMPAT_HAS_scx_bpf_select_cpu_and macro that checks for either the
struct args type (new) or the compat ksym (old) to test availability.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
tools/sched_ext/include/scx/compat.bpf.h