]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add CO-RE relocs ints tests
authorAndrii Nakryiko <andriin@fb.com>
Wed, 7 Aug 2019 21:40:00 +0000 (14:40 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2019 21:43:49 +0000 (14:43 -0700)
commitfff99f35fd6009aba8e012e2331eeb597ab60774
treee1bebafbf9e88eb3b260d048d72128b9f27dfcbc
parent805a33d53b52aae16d76166abd3be5832a84d0e5
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>
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/progs/btf__core_reloc_ints.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___bool.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_bitfield.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_16.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_32.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_64.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___err_wrong_sz_8.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_ints___reverse_sign.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/core_reloc_types.h
tools/testing/selftests/bpf/progs/test_core_reloc_ints.c [new file with mode: 0644]