Use minimal bootstrap version of bpftool for testing min_core_btf functionality in core_reloc tests. This avoids unnecessary dependencies on libbfd, libcap, etc that full bpftool might have in build host differs from the one in which the test is actually run. This is currently the case for BPF CI, where build host has libbfd, but stripped down Linux image inside QEMU doesn't, which causes CI tests to fail. Cc: Mauricio Vásquez <mauricio@xxxxxxxxxx> Fixes: 704c91e59fe0 ("selftests/bpf: Test "bpftool gen min_core_btf") Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> --- tools/testing/selftests/bpf/prog_tests/core_reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/core_reloc.c b/tools/testing/selftests/bpf/prog_tests/core_reloc.c index 8fbb40a832d5..a503ca4433cd 100644 --- a/tools/testing/selftests/bpf/prog_tests/core_reloc.c +++ b/tools/testing/selftests/bpf/prog_tests/core_reloc.c @@ -843,7 +843,7 @@ static int run_btfgen(const char *src_btf, const char *dst_btf, const char *objp int n; n = snprintf(command, sizeof(command), - "./tools/build/bpftool/bpftool gen min_core_btf %s %s %s", + "./tools/build/bpftool/bootstrap/bpftool gen min_core_btf %s %s %s", src_btf, dst_btf, objpath); if (n < 0 || n >= sizeof(command)) return -1; -- 2.30.2