All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qais Yousef <qais.yousef@arm.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv5 4/5] package/bpftrace: new package
Date: Mon, 21 Dec 2020 11:44:04 +0000	[thread overview]
Message-ID: <20201221114404.53vb56dx3gluc34y@e107158-lin> (raw)
In-Reply-To: <96e61ace-fde1-3887-2ffa-e70696ce4458@gmail.com>

On 12/20/20 11:01, Romain Naour wrote:
> Le 20/12/2020 ? 02:47, Qais Yousef a ?crit?:
> > On 12/06/20 18:35, Romain Naour wrote:
> >> From: Qais Yousef <qais.yousef@arm.com>
> >>
> >> bpftrace is a high-level tracing language for Linux enhanced Berkeley
> >> Packet Filter (eBPF) available in recent Linux kernels (4.x).
> >>
> >> Only tested on x86_64 and aarch64. The package doesn't support i386 and
> >> aarch32.
> >>
> >> Signed-off-by: Qais Yousef <qais.yousef@arm.com>
> >> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> >> Cc: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
> >> ---
> >> v2: patch to build bundled libraries statically
> >>     Add glibc dependency
> >>     Rework to select bcc, libbpf and llvm RTII dependencies.
> >>     Add reverse dependencies
> >>     Add BR2_PACKAGE_BPFTRACE_ARCH_SUPPORTS
> >>     Bump the version to the latest (upcoming 0.12)
> >>       due to many build issues (and patch to backport) with
> >>       the latest release.
> >>     Add binutils optional dependency to provide libbfd and libopcodes.
> >>     Disable manpages.
> >> ---
> > 
> > I don't think we need the dependency on libbpf? BCC provides it and we depend
> > on it.
> 
> The libbpf provided by BCC is named libbcc_bpf.so but bpftrace really expect
> libbpf.so
> 
> I added libbpf package since distribution packages use it.
> https://archlinux.org/packages/community/x86_64/bpftrace/
> https://src.fedoraproject.org/rpms/bpftrace/blob/master/f/bpftrace.spec#_27
> 
> But bpftrace try to find bcc_bpf only for static linking.
> It's not clear what's the libbpf implementation the buildsystem is trying to
> use. Why it is not using the same bpf library for both static ans shared linking ?

I don't know to be honest. I saw that bpftrace uses bcc/libbpf.h in all places,
except for btf handling which is guarded by HAVE_LIBBPF_BTF_DUMP.

The INSTALL.md doesn't mention libbpf as dependency too..

https://github.com/iovisor/bpftrace/blob/master/INSTALL.md#building-bpftrace
https://github.com/iovisor/bpftrace/blob/master/INSTALL.md#generic-build-process

I think you have better experience than myself in this packaging related
problems. We could ask the bpftrace developers directly too to clarify the
dependencies.

> I think it's better use use the library from upstream (libbpf) rather than a
> library bundled in another software (bcc_libbpf).

I don't see this dependency will break anything. So I will trust your judgement
here.

Thanks

--
Qais Yousef

  parent reply	other threads:[~2020-12-21 11:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-06 17:35 [Buildroot] [PATCHv5 1/5] package/llvm: add BPF backend Romain Naour
2020-12-06 17:35 ` [Buildroot] [PATCHv5 2/5] package/bcc: new package Romain Naour
2020-12-20  1:44   ` Qais Yousef
2020-12-20  9:17     ` Romain Naour
2020-12-06 17:35 ` [Buildroot] [PATCHv5 3/5] package/libbpf: " Romain Naour
2020-12-20  2:07   ` Qais Yousef
2020-12-06 17:35 ` [Buildroot] [PATCHv5 4/5] package/bpftrace: " Romain Naour
2020-12-20  1:47   ` Qais Yousef
2020-12-20 10:01     ` Romain Naour
2020-12-20 15:22       ` Romain Naour
2020-12-21 11:44       ` Qais Yousef [this message]
2020-12-06 17:35 ` [Buildroot] [PATCHv5 5/5] package/bcc: add optional luajit dependency Romain Naour
2020-12-20  1:47   ` Qais Yousef
2020-12-20 10:11     ` Romain Naour
2020-12-20  1:43 ` [Buildroot] [PATCHv5 1/5] package/llvm: add BPF backend Qais Yousef

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=20201221114404.53vb56dx3gluc34y@e107158-lin \
    --to=qais.yousef@arm.com \
    --cc=buildroot@busybox.net \
    /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.