]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19b5bfb48f8bd9262474efdf2dcf02fb3b1f3323
treeee1c1b0b650b10534b39aa9b42b9ff3f2329c29e
parenta18da1f4ee59f0c60a50c5d45f86ce95563cca1b
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