]> git.baikalelectronics.ru Git - kernel.git/commit
tools/perf: Stop using bpf_object__find_program_by_title API.
authorKui-Feng Lee <kuifeng@fb.com>
Tue, 14 Dec 2021 03:59:30 +0000 (19:59 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Dec 2021 22:38:05 +0000 (14:38 -0800)
commit17f973a8bbcf4fb9549184b99cfbd0e0761f8de3
tree06a819eb47a82be44013baca4d2df66075240e4d
parent8e74527179d02e2d4cdceb3b1a8667b56eba3e0c
tools/perf: Stop using bpf_object__find_program_by_title API.

bpf_obj__find_program_by_title() in libbpf is going to be deprecated.
Call bpf_object_for_each_program to find a program in the section with
a given name instead.

Signed-off-by: Kui-Feng Lee <kuifeng@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211214035931.1148209-4-kuifeng@fb.com
tools/perf/builtin-trace.c