All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matteo Croce" <mcroce@linux.microsoft.com>
To: Bruce Ashfield <bruce.ashfield@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] recipes-kernel: add libbpf
Date: Mon, 8 Feb 2021 22:22:09 +0100	[thread overview]
Message-ID: <CAFnufp0ehmcRbLmZXPyG0s8guwyxHhaFXchATL0JRqTYMVPKNA@mail.gmail.com> (raw)
In-Reply-To: <CADkTA4P-kS6UdgDmT9J=FtWGy0Tmu28RtDtXHOg0M_J8z41vAQ@mail.gmail.com>

On Mon, Feb 8, 2021 at 9:13 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
>
> On Mon, Feb 8, 2021 at 1:18 PM Matteo Croce <mcroce@linux.microsoft.com> wrote:
> >
> > From: Matteo Croce <mcroce@microsoft.com>
> >
> > Add a recipe to build libbpf from https://github.com/libbpf/libbpf
> > The only patch fixes a build issue, and it's already merged upstream.
>
> Thanks for the submission! I have a few comments / questions.
>
> To get this into oe-core, we should be commenting / documenting why it
> should be in core, versus another layer. The standard criteria is that
> there are enough varied users and that the functionality is common
> enough, that it belongs in core.
>

For sure bcc and bpftrace can use it, and maybe also perf.
In future even iproute2 will use it, as it has been ported to libbpf recently.
Feel free to propose another layer, in case you know a better one.


> There should also be some sort of oe-selftest for the functionality,
> otherwise, it is hard to detect breakages. Some sort of application
> that uses the library and that can be executed in qemu would be
> enough.
>

That's doable.

> What are the kernel requirements ? CONFIG_BPF is selected by other
> kernel configs (it has no menu entry, so it must be), is it that, or
> something else that is the requirement (classic BFP?). If that option
> is now always on, is that true for the reference kernel versions in
> master (5.4 and 5.10).
>

I'd say BPF_SYSCALL, which is the single entry point for al the eBPF routines.

> Finally, does this work across all the supported architectures ? if
> not, we'll need compatibility settings.
>

I tested it only x86 and aarch64, but it should be arch independent.

Thanks!
-- 
per aspera ad upstream

  parent reply	other threads:[~2021-02-08 21:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 18:17 [PATCH] recipes-kernel: add libbpf Matteo Croce
2021-02-08 20:13 ` [OE-core] " Bruce Ashfield
2021-02-08 20:24   ` Bruce Ashfield
2021-02-08 21:22   ` Matteo Croce [this message]
2021-02-08 21:34     ` Bruce Ashfield
2021-02-09 16:44       ` Khem Raj
2021-02-09 17:02         ` Matteo Croce
2021-02-18  2:31   ` Matteo Croce
2021-02-18  3:51     ` Bruce Ashfield
2021-02-18 23:04       ` Matteo Croce
2021-02-22 16:54         ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFnufp0ehmcRbLmZXPyG0s8guwyxHhaFXchATL0JRqTYMVPKNA@mail.gmail.com \
    --to=mcroce@linux.microsoft.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.