libbpf: Split CO-RE logic into relo_core.c.
authorAlexei Starovoitov <ast@kernel.org>
Wed, 21 Jul 2021 00:08:22 +0000 (17:08 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 26 Jul 2021 19:29:14 +0000 (12:29 -0700)
commitb0588390dbcedcd74fab6ffb8afe8d52380fd8b6
tree1a4ef59e764121dc2cacab734953201e787ece9c
parent301ba4d710284e088d278adc477b7edad834577f
libbpf: Split CO-RE logic into relo_core.c.

Move CO-RE logic into separate file.
The internal interface between libbpf and CO-RE is through
bpf_core_apply_relo_insn() function and few structs defined in relo_core.h.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721000822.40958-5-alexei.starovoitov@gmail.com
tools/lib/bpf/Build
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h
tools/lib/bpf/relo_core.c [new file with mode: 0644]
tools/lib/bpf/relo_core.h