selftests/bpf: use bootstrap bpftool for core_reloc tests
Subsystems (3)
Andrii Nakryiko
maintainerPATCH 1/1 selftests/bpf: use bootstrap bpftool for core_reloc tests
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 <[email protected]>
Fixes 704c91e59fe0 ("selftests/bpf: Test "bpftool gen min_core_btf")
Signed-off-by Andrii Nakryiko <[email protected]>
--- tools/testing/selftests/bpf/prog_tests/core_reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/prog_tests/core_reloc.c +1 -1
@@ -843,7 +843,7 @@ static int run_btfgen(const char *src_btf, const char *dst_btf, const char *objpint 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 ;
Signature · 1 line
2.30.2