summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-09-15 18:58:30 -0700
committerAlexei Starovoitov <ast@kernel.org>2021-09-17 09:04:12 -0700
commitf11f86a3931b5d533aed1be1720fbd55bd63174d (patch)
tree499439e013261aec23ca7690d766b29c3bd7e25a /tools/perf/scripts/python
parent336562752acc1a723f9a24b5b8129ae22e0478c6 (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 <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-2-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions