]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: suppress readelf stderr when probing for BTF support
authorStanislav Fomichev <sdf@google.com>
Thu, 24 Jan 2019 16:54:29 +0000 (08:54 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 25 Jan 2019 00:48:35 +0000 (01:48 +0100)
commitda9fe64b244e563191c29a03b3728c1352b3454a
treef86789b5ddcdf672a1ff61bf0e726cea5450d48c
parent2772396a3147d9f6677cc3cb37a74a0843bf072b
selftests/bpf: suppress readelf stderr when probing for BTF support

Before:
$ make -s -C tools/testing/selftests/bpf
readelf: Error: Missing knowledge of 32-bit reloc types used in DWARF
sections of machine number 247
readelf: Warning: unable to apply unsupported reloc type 10 to section
.debug_info
readelf: Warning: unable to apply unsupported reloc type 1 to section
.debug_info
readelf: Warning: unable to apply unsupported reloc type 10 to section
.debug_info

After:
$ make -s -C tools/testing/selftests/bpf

v2:
* use llvm-readelf instead of redirecting binutils' readelf stderr to
  /dev/null

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile