perf bpf: Stop using deprecated bpf_object__next() API
authorChristy Lee <christylee@fb.com>
Sat, 12 Feb 2022 07:30:54 +0000 (23:30 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Feb 2022 18:50:02 +0000 (15:50 -0300)
commite8eaadf45b906572724bf0f198e1be97b663b3d5
tree0d9a168e9b3fa97e0864cc4d2c5f02210164509a
parent710f6c38bc5f49323b2d1e80ccb683f149477e51
perf bpf: Stop using deprecated bpf_object__next() API

Libbpf has deprecated the ability to keep track of object list inside
libbpf, it now requires applications to track usage multiple bpf objects
directly. Remove usage of bpf_object__next() API and hoist the tracking
logic to perf.

Signed-off-by: Christy Lee <christylee@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: bpf@vger.kernel.org
Cc: kernel-team@fb.com
Link: https://lore.kernel.org/bpf/20220212073054.1052880-3-andrii@kernel.org
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-loader.c