diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-09-13 18:47:32 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-09-14 15:49:24 -0700 |
commit | 5532dfd42e4846e84d346a6dfe01e477e35baa65 (patch) | |
tree | 81f401da9d5eab5a1a06afc81189938aaab4c61f /tools/testing/selftests/bpf/prog_tests/perf_buffer.c | |
parent | 91b4d1d1d54431c72f3a7ff034f30a635f787426 (diff) |
libbpf: Simplify BPF program auto-attach code
Remove the need to explicitly pass bpf_sec_def for auto-attachable BPF
programs, as it is already recorded at bpf_object__open() time for all
recognized type of BPF programs. This further reduces number of explicit
calls to find_sec_def(), simplifying further refactorings.
No functional changes are done by this patch.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210914014733.2768-4-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_buffer.c')
0 files changed, 0 insertions, 0 deletions