libbpf: Add subskeleton scaffolding
authorDelyan Kratunov <delyank@fb.com>
Wed, 16 Mar 2022 23:37:33 +0000 (23:37 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 18 Mar 2022 06:11:16 +0000 (23:11 -0700)
commit430025e5dca5ad8902e7c3092b7c975acae154c5
tree30b82606ae710c842060b430128903076c4598ed
parent262cfb74ffdaed06e65b8b20e10241768a9a2e18
libbpf: Add subskeleton scaffolding

In symmetry with bpf_object__open_skeleton(),
bpf_object__open_subskeleton() performs the actual walking and linking
of maps, progs, and globals described by bpf_*_skeleton objects.

Signed-off-by: Delyan Kratunov <delyank@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/6942a46fbe20e7ebf970affcca307ba616985b15.1647473511.git.delyank@fb.com
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map