libbpf: Cleanup the layering between CORE and bpf_program.
authorAlexei Starovoitov <ast@kernel.org>
Wed, 21 Jul 2021 00:08:19 +0000 (17:08 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 26 Jul 2021 19:11:23 +0000 (12:11 -0700)
commit6e43b28607848eeb079c033f415b410788569b27
tree08296e00faf9393f2675edd541f3a8350d6cfc26
parent2b7e9f25e590726cca76700ebdb10e92a7a72ca1
libbpf: Cleanup the layering between CORE and bpf_program.

CO-RE processing functions don't need to know 'struct bpf_program' details.
Cleanup the layering to eventually be able to move CO-RE logic into a separate file.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721000822.40958-2-alexei.starovoitov@gmail.com
tools/lib/bpf/libbpf.c