Message ID | 20230315223607.50803-1-alexei.starovoitov@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | bpf: Add detection of kfuncs. | expand |
On 3/15/23 3:36 PM, Alexei Starovoitov wrote: > From: Alexei Starovoitov <ast@kernel.org> > > Allow BPF programs detect at load time whether particular kfunc exists. Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Alexei Starovoitov wrote: > From: Alexei Starovoitov <ast@kernel.org> > > Allow BPF programs detect at load time whether particular kfunc exists. > > Alexei Starovoitov (2): > bpf: Allow ld_imm64 instruction to point to kfunc. > selftests/bpf: Add test for bpf_kfunc_exists(). > > kernel/bpf/verifier.c | 7 +++++-- > tools/lib/bpf/bpf_helpers.h | 3 +++ > .../selftests/bpf/progs/task_kfunc_success.c | 14 +++++++++++++- > 3 files changed, 21 insertions(+), 3 deletions(-) > > -- > 2.34.1 > For the series Acked-by: John Fastabend <john.fastabend@gmail.com>
Alexei Starovoitov <alexei.starovoitov@gmail.com> writes: > From: Alexei Starovoitov <ast@kernel.org> > > Allow BPF programs detect at load time whether particular kfunc exists. > > Alexei Starovoitov (2): > bpf: Allow ld_imm64 instruction to point to kfunc. > selftests/bpf: Add test for bpf_kfunc_exists(). > > kernel/bpf/verifier.c | 7 +++++-- > tools/lib/bpf/bpf_helpers.h | 3 +++ > .../selftests/bpf/progs/task_kfunc_success.c | 14 +++++++++++++- > 3 files changed, 21 insertions(+), 3 deletions(-) Nice! For the series: Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
From: Alexei Starovoitov <ast@kernel.org> Allow BPF programs detect at load time whether particular kfunc exists. Alexei Starovoitov (2): bpf: Allow ld_imm64 instruction to point to kfunc. selftests/bpf: Add test for bpf_kfunc_exists(). kernel/bpf/verifier.c | 7 +++++-- tools/lib/bpf/bpf_helpers.h | 3 +++ .../selftests/bpf/progs/task_kfunc_success.c | 14 +++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-)