Re: [PATCH v3 bpf-next 12/17] libbpf: add BPF object skeleton support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux