tools/bpf: enhance test_btf file testing to test func info
authorYonghong Song <yhs@fb.com>
Mon, 19 Nov 2018 23:29:20 +0000 (15:29 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 20 Nov 2018 18:54:39 +0000 (10:54 -0800)
commit999d82cbc04416cc7f2b5cb6daab947c16f0fd3a
treeee1c1b0b650b10534b39aa9b42b9ff3f2329c29e
parentd7f5b5e051554c91bab995b67101af4625af591a
tools/bpf: enhance test_btf file testing to test func info

Change the bpf programs test_btf_haskv.c and test_btf_nokv.c to
have two sections, and enhance test_btf.c test_file feature
to test btf func_info returned by the kernel.

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>
tools/testing/selftests/bpf/test_btf.c
tools/testing/selftests/bpf/test_btf_haskv.c
tools/testing/selftests/bpf/test_btf_nokv.c