bpf: Allow kfunc in tracing and syscall programs.
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 18 May 2022 20:59:08 +0000 (22:59 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 21 May 2022 02:28:33 +0000 (19:28 -0700)
commit979497674e63666a99fd7d242dba53a5ca5d628b
treed368e914e67ed22be56ee22b64124487df5af1fd
parent2dc323b1c4cb8ab7db9f8286a9c3267ce66419ab
bpf: Allow kfunc in tracing and syscall programs.

Tracing and syscall BPF program types are very convenient to add BPF
capabilities to subsystem otherwise not BPF capable.
When we add kfuncs capabilities to those program types, we can add
BPF features to subsystems without having to touch BPF core.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220518205924.399291-2-benjamin.tissoires@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c