Re: [PATCH] sched_ext: Fix the incorrect bpf_list kfunc API in common.bpf.h.
From: Tejun Heo
Date: Thu Feb 13 2025 - 11:56:28 EST
On Wed, Feb 12, 2025 at 03:19:36PM +0800, Chuyi Zhou wrote:
> 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@xxxxxxxxxxxxx>
Applied to sched_ext/for-6.14-fixes.
Thanks.
--
tejun