diff options
author | Andrii Nakryiko <[email protected]> | 2021-09-15 18:58:30 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-09-17 09:04:12 -0700 |
commit | f11f86a3931b5d533aed1be1720fbd55bd63174d (patch) | |
tree | 499439e013261aec23ca7690d766b29c3bd7e25a /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 336562752acc1a723f9a24b5b8129ae22e0478c6 (diff) |
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/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions