bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] libbpf: Remove from kernel tree.
       [not found] <20210718065039.15627-1-msuchanek@suse.de>
@ 2021-07-18 19:04 ` Daniel Borkmann
  2021-07-18 19:36   ` Michal Suchánek
  2021-07-18 19:31 ` kernel test robot
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Borkmann @ 2021-07-18 19:04 UTC (permalink / raw)
  To: Michal Suchanek, bpf
  Cc: Alexei Starovoitov, Andrii Nakryiko, Martin KaFai Lau, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, Björn Töpel,
	Magnus Karlsson, Jonathan Lemon, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, David S. Miller, Jakub Kicinski,
	Jesper Dangaard Brouer, Nathan Chancellor, Nick Desaulniers,
	linux-kernel, netdev, linux-riscv, clang-built-linux

On 7/18/21 8:50 AM, Michal Suchanek wrote:
> libbpf shipped by the kernel is outdated and has problems. Remove it.
> 
> Current version of libbpf is available at
> 
> https://github.com/libbpf/libbpf
> 
> Link: https://lore.kernel.org/bpf/b07015ebd7bbadb06a95a5105d9f6b4ed5817b2f.camel@debian.org/
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>

NAK, I'm not applying any of this. If there are issues, then fix them. If
you would have checked tools/lib/bpf/ git history, you would have found
that libbpf is under active development in the upstream kernel tree and
you could have spared yourself this patch.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libbpf: Remove from kernel tree.
       [not found] <20210718065039.15627-1-msuchanek@suse.de>
  2021-07-18 19:04 ` [PATCH] libbpf: Remove from kernel tree Daniel Borkmann
@ 2021-07-18 19:31 ` kernel test robot
  1 sibling, 0 replies; 5+ messages in thread
From: kernel test robot @ 2021-07-18 19:31 UTC (permalink / raw)
  To: Michal Suchanek, bpf
  Cc: kbuild-all, Michal Suchanek, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Martin KaFai Lau, Song Liu, Yonghong Song,
	John Fastabend, KP Singh

[-- Attachment #1: Type: text/plain, Size: 2147 bytes --]

Hi Michal,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on bpf/master]
[also build test ERROR on linus/master next-20210716]
[cannot apply to bpf-next/master sparc-next/master v5.14-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Michal-Suchanek/libbpf-Remove-from-kernel-tree/20210718-145456
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
config: i386-randconfig-a001-20210718 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/2ea8ab79c2a463d1811eca90527b055e1763decd
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Michal-Suchanek/libbpf-Remove-from-kernel-tree/20210718-145456
        git checkout 2ea8ab79c2a463d1811eca90527b055e1763decd
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> kernel/bpf/preload/iterators/iterators.c:10:10: fatal error: bpf/libbpf.h: No such file or directory
      10 | #include <bpf/libbpf.h>
         |          ^~~~~~~~~~~~~~
   compilation terminated.


vim +10 kernel/bpf/preload/iterators/iterators.c

d71fa5c9763c24 Alexei Starovoitov 2020-08-18 @10  #include <bpf/libbpf.h>
d71fa5c9763c24 Alexei Starovoitov 2020-08-18  11  #include <bpf/bpf.h>
d71fa5c9763c24 Alexei Starovoitov 2020-08-18  12  #include <sys/mount.h>
d71fa5c9763c24 Alexei Starovoitov 2020-08-18  13  #include "iterators.skel.h"
d71fa5c9763c24 Alexei Starovoitov 2020-08-18  14  #include "bpf_preload_common.h"
d71fa5c9763c24 Alexei Starovoitov 2020-08-18  15  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32529 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libbpf: Remove from kernel tree.
  2021-07-18 19:04 ` [PATCH] libbpf: Remove from kernel tree Daniel Borkmann
@ 2021-07-18 19:36   ` Michal Suchánek
  2021-07-18 21:54     ` Andrii Nakryiko
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Suchánek @ 2021-07-18 19:36 UTC (permalink / raw)
  To: Daniel Borkmann
  Cc: bpf, Alexei Starovoitov, Andrii Nakryiko, Martin KaFai Lau,
	Song Liu, Yonghong Song, John Fastabend, KP Singh,
	Björn Töpel, Magnus Karlsson, Jonathan Lemon,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, Nathan Chancellor,
	Nick Desaulniers, linux-kernel, netdev, linux-riscv,
	clang-built-linux

On Sun, Jul 18, 2021 at 09:04:16PM +0200, Daniel Borkmann wrote:
> On 7/18/21 8:50 AM, Michal Suchanek wrote:
> > libbpf shipped by the kernel is outdated and has problems. Remove it.
> > 
> > Current version of libbpf is available at
> > 
> > https://github.com/libbpf/libbpf
> > 
> > Link: https://lore.kernel.org/bpf/b07015ebd7bbadb06a95a5105d9f6b4ed5817b2f.camel@debian.org/
> > Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> 
> NAK, I'm not applying any of this. If there are issues, then fix them. If

They are fixed in the github version.

> you would have checked tools/lib/bpf/ git history, you would have found
> that libbpf is under active development in the upstream kernel tree and

So is the github version.

> you could have spared yourself this patch.

You could have spared me a lot of problems if there was only one source
for libbpf.

Can't you BPF people agree on one place to develop the library?

Thanks

Michal

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libbpf: Remove from kernel tree.
  2021-07-18 19:36   ` Michal Suchánek
@ 2021-07-18 21:54     ` Andrii Nakryiko
  2021-07-18 21:55       ` Andrii Nakryiko
  0 siblings, 1 reply; 5+ messages in thread
From: Andrii Nakryiko @ 2021-07-18 21:54 UTC (permalink / raw)
  To: Michal Suchánek
  Cc: Daniel Borkmann, bpf, Alexei Starovoitov, Andrii Nakryiko,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Björn Töpel, Magnus Karlsson, Jonathan Lemon,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, Nathan Chancellor,
	Nick Desaulniers, open list, Networking, linux-riscv,
	clang-built-linux

On Sun, Jul 18, 2021 at 12:36 PM Michal Suchánek <msuchanek@suse.de> wrote:
>
> On Sun, Jul 18, 2021 at 09:04:16PM +0200, Daniel Borkmann wrote:
> > On 7/18/21 8:50 AM, Michal Suchanek wrote:
> > > libbpf shipped by the kernel is outdated and has problems. Remove it.
> > >
> > > Current version of libbpf is available at
> > >
> > > https://github.com/libbpf/libbpf

This patch made me day :) libbpf sources in the kernel tree is *the
source* of libbpf. Quoting Details section ([0]) of libbpf README:

  Details

  This is a mirror of bpf-next Linux source tree's tools/lib/bpf
directory plus its supporting header files.

  All the gory details of syncing can be found in scripts/sync-kernel.sh script.

  Some header files in this repo (include/linux/*.h) are reduced
versions of their counterpart files at bpf-next's
tools/include/linux/*.h to make compilation successful.

> > >
> > > Link: https://lore.kernel.org/bpf/b07015ebd7bbadb06a95a5105d9f6b4ed5817b2f.camel@debian.org/
> > > Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> >
> > NAK, I'm not applying any of this. If there are issues, then fix them. If
>
> They are fixed in the github version.
>
> > you would have checked tools/lib/bpf/ git history, you would have found
> > that libbpf is under active development in the upstream kernel tree and
>
> So is the github version.

See above, Github is a projection of the kernel sources. Yes, Makefile
here and on Github are different, but that's by necessity. We do ask
all distros to package libbpf from the Github version, but there are
kernel projects (bpftool, perf, selftests) using libbpf from the
kernel sources themselves.

>
> > you could have spared yourself this patch.
>
> You could have spared me a lot of problems if there was only one source
> for libbpf.
>
> Can't you BPF people agree on one place to develop the library?

We can. We did. We even wrote that down. And we do develop libbpf in
one place, here. Github repo only accepts PRs for Github Makefile and
various parts of CI process which is Github-specific.

>
> Thanks
>
> Michal

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libbpf: Remove from kernel tree.
  2021-07-18 21:54     ` Andrii Nakryiko
@ 2021-07-18 21:55       ` Andrii Nakryiko
  0 siblings, 0 replies; 5+ messages in thread
From: Andrii Nakryiko @ 2021-07-18 21:55 UTC (permalink / raw)
  To: Michal Suchánek
  Cc: Daniel Borkmann, bpf, Alexei Starovoitov, Andrii Nakryiko,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Björn Töpel, Magnus Karlsson, Jonathan Lemon,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, Nathan Chancellor,
	Nick Desaulniers, open list, Networking, linux-riscv,
	clang-built-linux

On Sun, Jul 18, 2021 at 2:54 PM Andrii Nakryiko
<andrii.nakryiko@gmail.com> wrote:
>
> On Sun, Jul 18, 2021 at 12:36 PM Michal Suchánek <msuchanek@suse.de> wrote:
> >
> > On Sun, Jul 18, 2021 at 09:04:16PM +0200, Daniel Borkmann wrote:
> > > On 7/18/21 8:50 AM, Michal Suchanek wrote:
> > > > libbpf shipped by the kernel is outdated and has problems. Remove it.
> > > >
> > > > Current version of libbpf is available at
> > > >
> > > > https://github.com/libbpf/libbpf
>
> This patch made me day :) libbpf sources in the kernel tree is *the
> source* of libbpf. Quoting Details section ([0]) of libbpf README:

  [0] https://github.com/libbpf/libbpf#details

>
>   Details
>
>   This is a mirror of bpf-next Linux source tree's tools/lib/bpf
> directory plus its supporting header files.
>
>   All the gory details of syncing can be found in scripts/sync-kernel.sh script.
>
>   Some header files in this repo (include/linux/*.h) are reduced
> versions of their counterpart files at bpf-next's
> tools/include/linux/*.h to make compilation successful.
>
> > > >
> > > > Link: https://lore.kernel.org/bpf/b07015ebd7bbadb06a95a5105d9f6b4ed5817b2f.camel@debian.org/
> > > > Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> > >
> > > NAK, I'm not applying any of this. If there are issues, then fix them. If
> >
> > They are fixed in the github version.
> >
> > > you would have checked tools/lib/bpf/ git history, you would have found
> > > that libbpf is under active development in the upstream kernel tree and
> >
> > So is the github version.
>
> See above, Github is a projection of the kernel sources. Yes, Makefile
> here and on Github are different, but that's by necessity. We do ask
> all distros to package libbpf from the Github version, but there are
> kernel projects (bpftool, perf, selftests) using libbpf from the
> kernel sources themselves.
>
> >
> > > you could have spared yourself this patch.
> >
> > You could have spared me a lot of problems if there was only one source
> > for libbpf.
> >
> > Can't you BPF people agree on one place to develop the library?
>
> We can. We did. We even wrote that down. And we do develop libbpf in
> one place, here. Github repo only accepts PRs for Github Makefile and
> various parts of CI process which is Github-specific.
>
> >
> > Thanks
> >
> > Michal

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-18 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210718065039.15627-1-msuchanek@suse.de>
2021-07-18 19:04 ` [PATCH] libbpf: Remove from kernel tree Daniel Borkmann
2021-07-18 19:36   ` Michal Suchánek
2021-07-18 21:54     ` Andrii Nakryiko
2021-07-18 21:55       ` Andrii Nakryiko
2021-07-18 19:31 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).