aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2022-04-21 03:39:43 +0000
committerDaniel Borkmann <[email protected]>2022-04-22 22:36:55 +0000
commitdf86ca0d2f0fa6be525a25b0b3d836d361f85754 (patch)
treedc0f58c0107ce9f7513592eacf1757185de5b980 /tools/lib/bpf/bpf.c
parentlibbpf: Improve libbpf API documentation link position (diff)
downloadkernel-df86ca0d2f0fa6be525a25b0b3d836d361f85754.tar.gz
kernel-df86ca0d2f0fa6be525a25b0b3d836d361f85754.zip
bpf: Allow attach TRACING programs through LINK_CREATE command
Allow attaching BTF-aware TRACING programs, previously attachable only through BPF_RAW_TRACEPOINT_OPEN command, through LINK_CREATE command: - BTF-aware raw tracepoints (tp_btf in libbpf lingo); - fentry/fexit/fmod_ret programs; - BPF LSM programs. This change converges all bpf_link-based attachments under LINK_CREATE command allowing to further extend the API with features like BPF cookie under "multiplexed" link_create section of bpf_attr. Non-BTF-aware raw tracepoints are left under BPF_RAW_TRACEPOINT_OPEN, but there is nothing preventing opening them up to LINK_CREATE as well. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Kuifeng Lee <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions