WSL2-Linux-Kernel/tools/build/feature
Arnaldo Carvalho de Melo f1bdebbb67 perf bpf: Fix build with libbpf 0.7.0 by checking if bpf_program__set_insns() is available
During the transition to libbpf 1.0 some functions that perf used were
deprecated and finally removed from libbpf, so bpf_program__set_insns()
was introduced for perf to continue to use its bpf loader.

But when build with LIBBPF_DYNAMIC=1 we now need to check if that
function is available so that perf can build with older libbpf versions,
even if the end result is emitting a warning to the user that the use
of the perf BPF loader requires a newer libbpf, since bpf_program__set_insns()
touches libbpf objects internal state.

This affects only 'perf trace' when using bpf C code or pre-compiled
bytecode as an event.

Noticed on RHEL9, that has libbpf 0.7.0, where bpf_program__set_insns()
isn't available.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2022-10-25 17:40:48 -03:00
..
.gitignore
Makefile perf bpf: Fix build with libbpf 0.7.0 by checking if bpf_program__set_insns() is available 2022-10-25 17:40:48 -03:00
test-all.c tools build: Add feature test for init_disassemble_info API changes 2022-08-01 15:29:10 -03:00
test-backtrace.c
test-bionic.c
test-bpf.c bpf, mips: Fix build errors about __NR_bpf undeclared 2021-11-26 22:11:25 +01:00
test-clang-bpf-co-re.c tools/bpftool: Generalize BPF skeleton support and generate vmlinux.h 2020-06-22 17:01:48 -07:00
test-clang.cpp
test-compile.c
test-cplus-demangle.c
test-cxx.cpp
test-disassembler-four-args.c
test-disassembler-init-styled.c tools build: Add feature test for init_disassemble_info API changes 2022-08-01 15:29:10 -03:00
test-dwarf.c
test-dwarf_getlocations.c
test-eventfd.c
test-file-handle.c
test-fortify-source.c
test-get_cpuid.c
test-get_current_dir_name.c
test-gettid.c
test-glibc.c
test-gtk2-infobar.c
test-gtk2.c
test-hello.c
test-jvmti-cmlr.c
test-jvmti.c
test-libaio.c
test-libaudit.c
test-libbabeltrace.c
test-libbfd-buildid.c tools features: Add feature test to check if libbfd has buildid support 2020-09-04 14:38:15 -03:00
test-libbfd.c
test-libbpf-bpf_map_create.c perf build: Stop using __weak bpf_map_create() to handle older libbpf versions 2022-05-26 12:36:56 -03:00
test-libbpf-bpf_object__next_map.c perf build: Stop using __weak bpf_object__next_map() to handle older libbpf versions 2022-05-26 11:02:02 -03:00
test-libbpf-bpf_object__next_program.c perf build: Stop using __weak bpf_object__next_program() to handle older libbpf versions 2022-05-26 11:02:02 -03:00
test-libbpf-bpf_prog_load.c perf build: Stop using __weak bpf_prog_load() to handle older libbpf versions 2022-05-26 11:02:02 -03:00
test-libbpf-bpf_program__set_insns.c perf bpf: Fix build with libbpf 0.7.0 by checking if bpf_program__set_insns() is available 2022-10-25 17:40:48 -03:00
test-libbpf-btf__load_from_kernel_by_id.c perf build: Fix btf__load_from_kernel_by_id() feature check 2022-05-26 11:02:02 -03:00
test-libbpf-btf__raw_data.c perf build: Stop using __weak btf__raw_data() to handle older libbpf versions 2022-05-26 11:02:02 -03:00
test-libbpf.c
test-libcap.c
test-libcrypto.c tools build: Switch to new openssl API for test-libcrypto 2022-08-10 10:44:02 -03:00
test-libdebuginfod.c perf build-ids: Fall back to debuginfod query if debuginfo not found 2020-08-14 09:51:14 -03:00
test-libdw-dwarf-unwind.c
test-libelf-gelf_getnote.c
test-libelf-getphdrnum.c
test-libelf-getshdrstrndx.c
test-libelf.c
test-libnuma.c
test-libopencsd.c perf cs-etm: Update OpenCSD decoder for ETE 2021-09-03 08:16:00 -03:00
test-libperl.c
test-libpfm4.c tools feature: Add support for detecting libpfm4 2020-05-05 16:35:31 -03:00
test-libpython.c
test-libslang-include-subdir.c
test-libslang.c
test-libtraceevent.c perf tools: Enable libtraceevent dynamic linking 2021-04-29 10:31:00 -03:00
test-libtracefs.c perf tools: Enable libtracefs dynamic linking 2021-09-28 16:08:37 -03:00
test-libunwind-aarch64.c
test-libunwind-arm.c
test-libunwind-debug-frame-aarch64.c
test-libunwind-debug-frame-arm.c
test-libunwind-debug-frame.c
test-libunwind-x86.c
test-libunwind-x86_64.c
test-libunwind.c
test-libzstd.c
test-llvm-version.cpp
test-llvm.cpp
test-lzma.c
test-numa_num_possible_cpus.c
test-pthread-attr-setaffinity-np.c
test-pthread-barrier.c
test-reallocarray.c
test-sched_getcpu.c
test-sdt.c
test-setns.c
test-stackprotector-all.c
test-timerfd.c
test-zlib.c