Re: [PATCH bpf-next 09/10] selftest/bpf: add CO-RE relocs ptr-as-array tests

2019-07-29 Thread Song Liu
On Wed, Jul 24, 2019 at 12:31 PM Andrii Nakryiko wrote: > > 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 Acked-by: Song Liu

[PATCH bpf-next 09/10] selftest/bpf: add CO-RE relocs ptr-as-array tests

2019-07-24 Thread Andrii Nakryiko
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 --- .../selftests/bpf/prog_tests/core_reloc.c | 20 +++ .../bpf/progs/btf__core_reloc_ptr_as_arr.c|