bpf: Remove !func_info and !line_info check from test_btf and bpftool
authorMartin KaFai Lau <kafai@fb.com>
Wed, 12 Dec 2018 18:18:22 +0000 (10:18 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 13 Dec 2018 11:16:31 +0000 (12:16 +0100)
commit177e77169b0b71587c74382d5f2207a16da34790
treeda39631926f29fbb7dd194f2b87c949631f5ebe8
parent9e794163a69c103633fefb10a3879408d4e4e2c8
bpf: Remove !func_info and !line_info check from test_btf and bpftool

kernel can provide the func_info and line_info even
it fails the btf_dump_raw_ok() test because they don't contain
kernel address.  This patch removes the corresponding '== 0'
test.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/prog.c
tools/lib/bpf/bpf_prog_linfo.c
tools/testing/selftests/bpf/test_btf.c