aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-08-07 14:40:00 -0700
committerAlexei Starovoitov <ast@kernel.org>2019-08-07 14:43:49 -0700
commitc1f5e7dd19e71cd3607572bb957def618a33519a (patch)
treee1bebafbf9e88eb3b260d048d72128b9f27dfcbc /tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c
parentselftests/bpf: add CO-RE relocs ptr-as-array tests (diff)
downloadlinux-dev-c1f5e7dd19e71cd3607572bb957def618a33519a.tar.xz
linux-dev-c1f5e7dd19e71cd3607572bb957def618a33519a.zip
selftests/bpf: add CO-RE relocs ints tests
Add various tests validating handling compatible/incompatible integer types. 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_ints___err_wrong_sz_64.c')
-rw-r--r--tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c b/tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c
new file mode 100644
index 000000000000..9a3dd2099c0f
--- /dev/null
+++ b/tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c
@@ -0,0 +1,3 @@
+#include "core_reloc_types.h"
+
+void f(struct core_reloc_ints___err_wrong_sz_64 x) {}