OSDN Git Service

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)
commitc1f5e7dd19e71cd3607572bb957def618a33519a
treee1bebafbf9e88eb3b260d048d72128b9f27dfcbc
parentd698f9dbdbed036ef28a96cd34a1b5d7fe58750e
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]