selftests/bpf: add CO-RE relocs misc tests
authorAndrii Nakryiko <andriin@fb.com>
Wed, 7 Aug 2019 21:40:01 +0000 (14:40 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2019 21:43:49 +0000 (14:43 -0700)
commit29e1c66872450adba0ad552ff6019932168676f3
treed8e0e5c5cd477ddf1ca0af0717623f1f19488972
parentc1f5e7dd19e71cd3607572bb957def618a33519a
selftests/bpf: add CO-RE relocs misc tests

Add tests validating few edge-cases of capturing offset relocations.

Signed-off-by: Andrii Nakryiko <andriin@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_misc.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/core_reloc_types.h
tools/testing/selftests/bpf/progs/test_core_reloc_misc.c [new file with mode: 0644]