]> git.baikalelectronics.ru Git - kernel.git/commit
perf bpf: Provide a weak btf__load_from_kernel_by_id() for older libbpf versions
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 Sep 2021 20:26:53 +0000 (17:26 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 Sep 2021 21:32:04 +0000 (18:32 -0300)
commit3c23cc0b1498b762d0526c2c2305ee81d226150b
treec60ee77454f714642aaecb43e2253f360ba7b2c8
parent7e3c581d4ee49909390b858a8c23cec1a87e8b6a
perf bpf: Provide a weak btf__load_from_kernel_by_id() for older libbpf versions

The btf__get_from_id() function was deprecated in favour of
btf__load_from_kernel_by_id(), but it is still avaiable, so use it to
provide a weak function btf__load_from_kernel_by_id() for older libbpf
when building perf with LIBBPF_DYNAMIC=1, i.e. using the system's libbpf
package.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-event.c