tools/bpf: do not use pahole if clang/llvm can generate BTF sections
authorYonghong Song <yhs@fb.com>
Mon, 19 Nov 2018 23:29:17 +0000 (15:29 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 20 Nov 2018 18:54:39 +0000 (10:54 -0800)
commit9ce6ae22c8e878aee7a96836b2ed9fd9a8173e41
tree7d5c7b5ff4e40aada9e845f577315c5d5fb37e6f
parent2993e0515bb44e157c17c9ba7309ba46366b6add
tools/bpf: do not use pahole if clang/llvm can generate BTF sections

Add additional checks in tools/testing/selftests/bpf and
samples/bpf such that if clang/llvm compiler can generate
BTF sections, do not use pahole.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/Makefile
tools/testing/selftests/bpf/Makefile