selftests/bpf: add BPF_CORE_READ relocatable read macro
authorAndrii Nakryiko <andriin@fb.com>
Wed, 7 Aug 2019 21:39:52 +0000 (14:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2019 21:43:49 +0000 (14:43 -0700)
commit2dc26d5a4f2e97364542030a4a51e4a50c14bae3
treef4a2a3127a18b3a0d32a6f96275476b5b48a45d7
parentddc7c3042614e273044f698d2beab25cc3842d45
selftests/bpf: add BPF_CORE_READ relocatable read macro

Add BPF_CORE_READ macro used in tests to do bpf_core_read(), which
automatically captures offset relocation.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_helpers.h