aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-09-16 01:58:34 +0000
committerAlexei Starovoitov <[email protected]>2021-09-17 16:05:41 +0000
commit60aed22076b0d0ec2b7c7f9dba3ccd642520e1f3 (patch)
tree6920a9f255245e636e0909a518e08c7df0d1ac19 /tools/lib/bpf/libbpf.h
parentlibbpf: Allow skipping attach_func_name in bpf_program__set_attach_target() (diff)
downloadkernel-60aed22076b0d0ec2b7c7f9dba3ccd642520e1f3.tar.gz
kernel-60aed22076b0d0ec2b7c7f9dba3ccd642520e1f3.zip
selftests/bpf: Switch fexit_bpf2bpf selftest to set_attach_target() API
Switch fexit_bpf2bpf selftest to bpf_program__set_attach_target() instead of using bpf_object_open_opts.attach_prog_fd, which is going to be deprecated. These changes also demonstrate the new mode of set_attach_target() in which it allows NULL when the target is BPF program (attach_prog_fd != 0). Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
0 files changed, 0 insertions, 0 deletions