History log of /linux-master/tools/testing/selftests/bpf/progs/btf__core_reloc_ptr_as_arr.c
Revision Date Author Comments
# d698f9dbd 07-Aug-2019 Andrii Nakryiko <andriin@fb.com>

selftests/bpf: add CO-RE relocs ptr-as-array tests

Add test validating correct relocation handling for cases where pointer
to something is used as an array. E.g.:

int *ptr = ...;
int x = ptr[42];

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>