Re: [PATCH v3 bpf-next 5/7] libbpf: move bpf_{helpers,endian,tracing}.h into libbpf

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

 



On Tue, Oct 8, 2019 at 8:37 AM Jiri Benc <jbenc@xxxxxxxxxx> wrote:
>
> On Fri, 4 Oct 2019 18:37:44 +0000, Yonghong Song wrote:
> > distro can package bpf/btf uapi headers into libbpf package.
> > Users linking with libbpf.a/libbpf.so can use bpf/btf.h with include
> > path pointing to libbpf dev package include directory.
> > Could this work?
>
> I don't think it would. Distros have often a policy against bundling
> files that are available from one package (in this case, kernel-headers
> or similar) in a different package (libbpf).
>
> The correct way is making the libbpf package depend on a particular
> version of kernel-headers (or newer). As I said, I don't see a problem
> here. It's not a special situation, it's just usual dependencies.
>

We ended up switching to auto-generating BPF helpers from UAPI headers
w/ hardcoding BPF_FUNC_xxx values in bpf_helpers.h. So there is now no
dependency on any specific kernel version there.

>  Jiri



[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