aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-08-07 14:39:55 -0700
committerAlexei Starovoitov <ast@kernel.org>2019-08-07 14:43:49 -0700
commitec6438a988a43dcb03f0a04f3f51a48aba54764a (patch)
tree376e2801ac2e543aabf2fecc6ff6f0995e647324 /tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c
parentselftests/bpf: add CO-RE relocs struct flavors tests (diff)
downloadlinux-dev-ec6438a988a43dcb03f0a04f3f51a48aba54764a.tar.xz
linux-dev-ec6438a988a43dcb03f0a04f3f51a48aba54764a.zip
selftests/bpf: add CO-RE relocs nesting tests
Add a bunch of test validating correct handling of nested structs/unions. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c')
-rw-r--r--tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c b/tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c
new file mode 100644
index 000000000000..4480fcc0f183
--- /dev/null
+++ b/tools/testing/selftests/bpf/progs/btf__core_reloc_nesting.c
@@ -0,0 +1,3 @@
+#include "core_reloc_types.h"
+
+void f(struct core_reloc_nesting x) {}