diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-09-15 18:58:34 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-09-17 09:05:41 -0700 |
commit | 60aed22076b0d0ec2b7c7f9dba3ccd642520e1f3 (patch) | |
tree | 6920a9f255245e636e0909a518e08c7df0d1ac19 /tools/testing/selftests/bpf/prog_tests/bpf_iter.c | |
parent | 2d5ec1c66e25f0b4dd895a211e651a12dec2ef4f (diff) |
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 <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210916015836.1248906-6-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_iter.c')
0 files changed, 0 insertions, 0 deletions