]> git.baikalelectronics.ru Git - kernel.git/commit
perf bpf: Ignore deprecation warning when using libbpf's btf__get_from_id()
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Sep 2021 17:00:04 +0000 (10:00 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 18 Sep 2021 20:47:02 +0000 (17:47 -0300)
commitd490d5b119ed2e6db8cb2dd4aa002c3fe825d57a
tree80c50a59a1fffe942548abc842c0ad4f33fd1a04
parenta904b7dc9a177a174344687cda3ed253df9cfd4a
perf bpf: Ignore deprecation warning when using libbpf's btf__get_from_id()

Perf code re-implements libbpf's btf__load_from_kernel_by_id() API as
a weak function, presumably to dynamically link against old version of
libbpf shared library. Unfortunately this causes compilation warning
when perf is compiled against libbpf v0.6+.

For now, just ignore deprecation warning, but there might be a better
solution, depending on perf's needs.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: kernel-team@fb.com
LPU-Reference: 20210914170004.4185659-1-andrii@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-event.c