aboutsummaryrefslogtreecommitdiff
path: root/tools/bpf
diff options
context:
space:
mode:
authorAndrii Nakryiko2019-12-13 17:43:36 -0800
committerAlexei Starovoitov2019-12-15 15:58:05 -0800
commitd66562fba1ce66975bd61b0786fb8b1810f33caa (patch)
tree1c5a88f4a60ce1d654c48e764de023be0ba678d1 /tools/bpf
parent3f51935314b8c0e0f45f28bed2e7a023b2c7627c (diff)
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 <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20191214014341.3442258-13-andriin@fb.com
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions