Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #66498

Re: libbpf distro packaging

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.debian.kernel
Subject Re: libbpf distro packaging
Date 2020-03-10 19:10 +0100
Message-ID <zIRuh-rz-3@gated-at.bofh.it> (permalink)
References (5 earlier) <zfrLj-4kV-1@gated-at.bofh.it> <zH0im-3Hl-13@gated-at.bofh.it> <zH0im-3Hl-11@gated-at.bofh.it> <zIOPM-764-5@gated-at.bofh.it> <zIRuh-rz-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Mar 10, 2020 at 10:18:12AM -0700, Julia Kartseva wrote:
> 
> 
> On 3/10/20 7:57 AM, Jiri Olsa wrote:
> > On Thu, Mar 05, 2020 at 03:18:12PM +0100, Jiri Olsa wrote:
> > 
> > so I did some more checking and libbpf is automatically pulled into
> > centos 8, it's just at the moment there's some bug preventing that.. 
> > it is going to be fixed shortly ;-)
> > 
> > as for centos 7, what is the target user there? which version of libbpf
> > would you need in there?
> > 
> > jirka
> >
> Hi, that's great news!
> Nothing prevents us from having the latest v0.0.7 [1] in CentOS 7 :)

that's just half true.. while libbpf is ok, libbpf-devel needs uapi
headers to define all the stuff that's used in libbpf's headers

  Example:
	$ echo "#include <bpf/xsk.h>" | gcc -x c - 
	In file included from <stdin>:1:
	/usr/include/bpf/xsk.h: In function ‘xsk_ring_prod__needs_wakeup’:
	/usr/include/bpf/xsk.h:82:21: error: ‘XDP_RING_NEED_WAKEUP’ undeclared (first use in this function)
	   82 |  return *r->flags & XDP_RING_NEED_WAKEUP;
	      |                     ^~~~~~~~~~~~~~~~~~~~
	/usr/include/bpf/xsk.h:82:21: note: each undeclared identifier is reported only once for each function it appears in
	/usr/include/bpf/xsk.h: In function ‘xsk_umem__extract_addr’:
	/usr/include/bpf/xsk.h:173:16: error: ‘XSK_UNALIGNED_BUF_ADDR_MASK’ undeclared (first use in this function)
	  173 |  return addr & XSK_UNALIGNED_BUF_ADDR_MASK;
	      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
	/usr/include/bpf/xsk.h: In function ‘xsk_umem__extract_offset’:
	/usr/include/bpf/xsk.h:178:17: error: ‘XSK_UNALIGNED_BUF_OFFSET_SHIFT’ undeclared (first use in this function)
	  178 |  return addr >> XSK_UNALIGNED_BUF_OFFSET_SHIFT;
	      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'll need to check the state of rhel7 kernel headers, but that was
very early backport and I think headers are far behind

jirka

> Can updates for CentOS 7 and 8 be synced so the have the same libbpf version?
> 
> [1] https://github.com/libbpf/libbpf/releases/tag/v0.0.7
> 

Back to linux.debian.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-08-13 14:50 +0200
  Re: libbpf distro packaging Daniel Borkmann <daniel@iogearbox.net> - 2019-08-13 17:00 +0200
    Re: libbpf distro packaging Andrii Nakryiko <andrii.nakryiko@gmail.com> - 2019-08-13 20:50 +0200
  Re: libbpf distro packaging Andrii Nakryiko <andrii.nakryiko@gmail.com> - 2019-08-13 20:50 +0200
    Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-08-21 23:30 +0200
      Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-08-23 11:40 +0200
        Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-08-26 09:10 +0200
          Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-08-28 09:40 +0200
            Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-09-30 13:40 +0200
              Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-10-03 13:30 +0200
                Re: libbpf distro packaging Andrii Nakryiko <andrii.nakryiko@gmail.com> - 2019-10-03 18:50 +0200
                Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-10-03 19:50 +0200
              Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-10-08 10:00 +0200
                Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-10-16 12:20 +0200
                Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2019-12-20 15:50 +0100
                Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2020-03-05 16:10 +0100
                Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2020-03-10 16:20 +0100
                Re: libbpf distro packaging Jiri Olsa <jolsa@redhat.com> - 2020-03-10 19:10 +0100

csiph-web