]> Git Repo - linux.git/commit
libbpf: Add BPF object skeleton support
authorAndrii Nakryiko <[email protected]>
Sat, 14 Dec 2019 01:43:36 +0000 (17:43 -0800)
committerAlexei Starovoitov <[email protected]>
Sun, 15 Dec 2019 23:58:05 +0000 (15:58 -0800)
commitd66562fba1ce66975bd61b0786fb8b1810f33caa
tree1c5a88f4a60ce1d654c48e764de023be0ba678d1
parent3f51935314b8c0e0f45f28bed2e7a023b2c7627c
libbpf: Add BPF object skeleton support

Add new set of APIs, allowing to open/load/attach BPF object through BPF
object skeleton, generated by bpftool for a specific BPF object file. All the
xxx_skeleton() APIs wrap up corresponding bpf_object_xxx() APIs, but
additionally also automate map/program lookups by name, global data
initialization and mmap()-ing, etc.  All this greatly improves and simplifies
userspace usability of working with BPF programs. See follow up patches for
examples.

Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map
This page took 0.051975 seconds and 4 git commands to generate.