sched_ext: Fix the incorrect bpf_list kfunc API in common.bpf.h.
authorChuyi Zhou <zhouchuyi@bytedance.com>
Wed, 12 Feb 2025 07:19:36 +0000 (15:19 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 13 Feb 2025 16:47:08 +0000 (06:47 -1000)
commit2e2006c91c842c551521434466f9b4324719c9a7
tree6f98f96492b606ba283fc4447fec4c808bc20548
parent0760d62dad5d3e76c2aa175d9bc42b5f664967c2
sched_ext: Fix the incorrect bpf_list kfunc API in common.bpf.h.

Now BPF only supports bpf_list_push_{front,back}_impl kfunc, not bpf_list_
push_{front,back}.

This patch fix this issue. Without this patch, if we use bpf_list kfunc
in scx, the BPF verifier would complain:

libbpf: extern (func ksym) 'bpf_list_push_back': not found in kernel or
module BTFs
libbpf: failed to load object 'scx_foo'
libbpf: failed to load BPF skeleton 'scx_foo': -EINVAL

With this patch, the bpf list kfunc will work as expected.

Signed-off-by: Chuyi Zhou <zhouchuyi@bytedance.com>
Fixes: 2a52ca7c98960 ("sched_ext: Add scx_simple and scx_example_qmap example schedulers")
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/include/scx/common.bpf.h