diff options
| author | Chris Down <[email protected]> | 2020-01-22 00:01:10 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-01-22 16:52:28 +0000 |
| commit | 2a67a6ccb01f21b854715d86ff6432a18b97adb3 (patch) | |
| tree | a973e74380a9631256c6cc0e6a15af350856f56e /tools/lib/bpf/bpf.c | |
| parent | selftests/bpf: Build urandom_read with LDFLAGS and LDLIBS (diff) | |
| download | kernel-2a67a6ccb01f21b854715d86ff6432a18b97adb3.tar.gz kernel-2a67a6ccb01f21b854715d86ff6432a18b97adb3.zip | |
bpf, btf: Always output invariant hit in pahole DWARF to BTF transform
When trying to compile with CONFIG_DEBUG_INFO_BTF enabled, I got this
error:
% make -s
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make[3]: *** [vmlinux] Error 1
Compiling again without -s shows the true error (that pahole is
missing), but since this is fatal, we should show the error
unconditionally on stderr as well, not silence it using the `info`
function. With this patch:
% make -s
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make[3]: *** [vmlinux] Error 1
Signed-off-by: Chris Down <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions
