diff options
| author | Andrii Nakryiko <[email protected]> | 2021-09-16 01:58:30 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-09-17 16:04:12 +0000 |
| commit | f11f86a3931b5d533aed1be1720fbd55bd63174d (patch) | |
| tree | 499439e013261aec23ca7690d766b29c3bd7e25a /tools/lib/bpf/libbpf_common.h | |
| parent | bpf: Update bpf_get_smp_processor_id() documentation (diff) | |
| download | kernel-f11f86a3931b5d533aed1be1720fbd55bd63174d.tar.gz kernel-f11f86a3931b5d533aed1be1720fbd55bd63174d.zip | |
libbpf: Use pre-setup sec_def in libbpf_find_attach_btf_id()
Don't perform another search for sec_def inside
libbpf_find_attach_btf_id(), as each recognized bpf_program already has
prog->sec_def set.
Also remove unnecessary NULL check for prog->sec_name, as it can never
be NULL.
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_common.h')
0 files changed, 0 insertions, 0 deletions
