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)
commitb098f33692d75d184a3ab62095c376fd0e52d880
tree06a819eb47a82be44013baca4d2df66075240e4d
parent7490d59268168adf16aa319b007986778080d367
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