diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-19 03:47:51 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-25 23:40:48 +0300 |
commit | 409fb6bdd6eaf64c2da174b48b30ae032a9d7554 (patch) | |
tree | 35bc68c2efa9dda4c05cf378ab5e54ec07d5fd2d /tools/perf/builtin-buildid-list.c | |
parent | b92dd11725a7c57f55e148c7d3ce58a86f480575 (diff) | |
download | linux-409fb6bdd6eaf64c2da174b48b30ae032a9d7554.tar.xz |
perf bpf: Fix build with libbpf 0.7.0 by adding prototype for bpf_load_program()
The bpf_load_program() prototype appeared in tools/lib/bpf/bpf.h as
deprecated, but nowadays its completely removed, so add it back for
building with the system libbpf when using 'make LIBBPF_DYNAMIC=1'.
This is a stop gap hack till we do like tools/bpf does with bpftool,
i.e. bootstrap the libbpf build and install it in the perf build
directory when not using 'make LIBBPF_DYNAMIC=1'.
That has to be done to all libraries in tools/lib/, so tha we can
remove -Itools/lib/ from the tools/perf CFLAGS.
Noticed when building with LIBBPF_DYNAMIC=1 and libbpf 0.7.0 on RHEL9.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-buildid-list.c')
0 files changed, 0 insertions, 0 deletions