On Fri, Dec 13, 2019 at 3:59 PM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > On Fri, Dec 13, 2019 at 02:32:09PM -0800, Andrii Nakryiko wrote: > > 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. > > > > Acked-by: Martin KaFai Lau <kafai@xxxxxx> > > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> > ... > > +int bpf_object__open_skeleton(struct bpf_object_skeleton *s, > > + const struct bpf_object_open_opts *opts); > > +int bpf_object__load_skeleton(struct bpf_object_skeleton *s); > > +int bpf_object__attach_skeleton(struct bpf_object_skeleton *s); > > +void bpf_object__detach_skeleton(struct bpf_object_skeleton *s); > > +void bpf_object__destroy_skeleton(struct bpf_object_skeleton *s); > > libbpf.map and LIBBPF_API update for them is missing ? > The intent was to expose them as stable libbpf api, right? > Yeah, my bad, forgot to add LIBBPF_API.