* [PATCH bpf-next] selftests/bpf: use bootstrap bpftool for core_reloc tests
@ 2022-02-20 0:44 Andrii Nakryiko
0 siblings, 0 replies; only message in thread
From: Andrii Nakryiko @ 2022-02-20 0:44 UTC (permalink / raw)
To: bpf, ast, daniel; +Cc: andrii, kernel-team, Mauricio Vásquez
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@kinvolk.io>
Fixes: 704c91e59fe0 ("selftests/bpf: Test "bpftool gen min_core_btf")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-20 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-20 0:44 [PATCH bpf-next] selftests/bpf: use bootstrap bpftool for core_reloc tests Andrii Nakryiko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox