diff options
author | Alexei Starovoitov <ast@kernel.org> | 2021-09-17 09:04:13 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-09-17 09:05:41 -0700 |
commit | f706f6c66c4360e41dd650bcf24a45880e75bb39 (patch) | |
tree | 41c2d3963751330b621ff21f8e1014f3d058ba88 /tools/testing/selftests/bpf/prog_tests/bpf_iter.c | |
parent | 336562752acc1a723f9a24b5b8129ae22e0478c6 (diff) | |
parent | 942025c9f37ee45e69eb5f39a2877afab66d9555 (diff) |
Merge branch 'Improve set_attach_target() and deprecate open_opts.attach_prog_fd'
Andrii Nakryiko says:
====================
This patch set deprecates bpf_object_open_opts.attach_prog_fd (in libbpf 0.7+)
by extending bpf_program__set_attach_target() to support some more flexible
scenarios. Existing fexit_bpf2bpf selftest is updated accordingly to not use
deprecated APIs.
While at it, also deprecate no-op relaxed_core_relocs option (they are always
"relaxed").
Last patch also const-ifies all high-level libbpf attach APIs, as there is no
reason for them to assume bpf_program/bpf_map modifications.
Patch #1 also removes one more unneeded use of find_sec_def(), relying on
prog->sec_def that's set during bpf_object__open() operation, simplifying
upcoming refactoring a little bit more.
All these changes are preparatory patches before SEC() handling refactoring
that will come next.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_iter.c')
0 files changed, 0 insertions, 0 deletions