aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_btf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-06-17 12:26:57 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-06-18 00:10:42 +0200
commit9e3d709c47ca3d10df461635b350edef94f3cf11 (patch)
tree00b525f1b1470bff8a42427ad8896639a0e73b08 /tools/testing/selftests/bpf/test_btf.c
parentlibbpf: allow specifying map definitions using BTF (diff)
downloadlinux-dev-9e3d709c47ca3d10df461635b350edef94f3cf11.tar.xz
linux-dev-9e3d709c47ca3d10df461635b350edef94f3cf11.zip
selftests/bpf: add test for BTF-defined maps
Add file test for BTF-defined map definition. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/test_btf.c')
-rw-r--r--tools/testing/selftests/bpf/test_btf.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/testing/selftests/bpf/test_btf.c b/tools/testing/selftests/bpf/test_btf.c
index 289daf54dec4..8351cb5f4a20 100644
--- a/tools/testing/selftests/bpf/test_btf.c
+++ b/tools/testing/selftests/bpf/test_btf.c
@@ -4016,13 +4016,9 @@ struct btf_file_test {
};
static struct btf_file_test file_tests[] = {
-{
- .file = "test_btf_haskv.o",
-},
-{
- .file = "test_btf_nokv.o",
- .btf_kv_notfound = true,
-},
+ { .file = "test_btf_haskv.o", },
+ { .file = "test_btf_newkv.o", },
+ { .file = "test_btf_nokv.o", .btf_kv_notfound = true, },
};
static int do_test_file(unsigned int test_num)