bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Jean-Philippe Brucker <jean-philippe@linaro.org>
Cc: Jakov Petrina <jakov.petrina@sartura.hr>,
	Luka Perkov <luka.perkov@sartura.hr>,
	Juraj Vijtiuk <juraj.vijtiuk@sartura.hr>,
	Jakov Smolic <jakov.smolic@sartura.hr>,
	bpf@vger.kernel.org, Andrii Nakryiko <andrii.nakryiko@gmail.com>,
	Andrii Nakryiko <andriin@fb.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: eBPF CO-RE cross-compilation for 32-bit ARM platforms
Date: Fri, 7 Aug 2020 20:00:29 +0100	[thread overview]
Message-ID: <20200807190029.GI1551@shell.armlinux.org.uk> (raw)
In-Reply-To: <20200807172353.GA624812@myrica>

On Fri, Aug 07, 2020 at 07:23:53PM +0200, Jean-Philippe Brucker wrote:
> On Fri, Aug 07, 2020 at 04:20:58PM +0200, Jakov Petrina wrote:
> > Hi everyone,
> > 
> > recently we have begun extensive research into eBPF and related
> > technologies. Seeking an easier development process, we have switched over
> > to using the eBPF CO-RE [0] approach internally which has enabled us to
> > simplify most aspects of eBPF development, especially those related to
> > cross-compilation.

For those of us not familiar with what CO-RE is, this doesn't help.
I assume the [0] was a reference to something that explained it,
but that isn't included.

> > However, as part of these efforts we have stumbled upon several problems
> > that we feel would benefit from a community discussion where we may share
> > our solutions and discuss alternatives moving forward.
> > 
> > As a reference point, we have started researching and modifying several eBPF
> > CO-RE samples that have been developed or migrated from existing `bcc`
> > tooling. Most notable examples are those present in `bcc`'s `libbpf-tools`
> > directory [1]. Some of these samples have just recently been converted to
> > respective eBPF CO-RE variants, of which the `tcpconnect` tracing sample has
> > proven to be very interesting.
> > 
> > First showstopper for cross-compiling aforementioned example on the ARM
> > 32-bit platform has been with regards to generation of the required
> > `vmlinux.h` kernel header from the BTF information. More specifically, our
> > initial approach to have e.g. a compilation target dependency which would
> > invoke `bpftool` at configure time was not appropriate due to several
> > issues: a) CO-RE requires host kernel to have been compiled in such a way to
> > expose BTF information which may not available, and b) the generated

What is "BTF information"?  Google suggests it's something to do with
the British Thyroid Foundation.

Please don't use three letter abbreviations unless they are widely
understood, or if you wish to, please ensure that you explain them.
TLAs otherwise are an exclusion mechanism.

> > `vmlinux.h` was actually architecture-specific.

What is this "vmlinux.h" ?  It isn't something that the kernel provides
afaics.  It doesn't seem to be present on my existing x86 Debian system.
I've seen it on Fedora systems in the dim and distant past.

Where do you think it comes from?  Where are you finding it?
-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

  parent reply	other threads:[~2020-08-07 19:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 14:20 eBPF CO-RE cross-compilation for 32-bit ARM platforms Jakov Petrina
2020-08-07 17:23 ` Jean-Philippe Brucker
2020-08-07 18:40   ` Andrii Nakryiko
2020-08-07 20:54     ` Alexei Starovoitov
2020-08-10 12:57       ` Jean-Philippe Brucker
2020-08-11  6:54         ` Andrii Nakryiko
2020-08-11  9:54           ` Jean-Philippe Brucker
2020-08-12  3:18             ` Andrii Nakryiko
2020-08-07 19:00   ` Russell King - ARM Linux admin [this message]
2020-08-10  7:52     ` Jakov Petrina
2020-08-11 10:05       ` Russell King - ARM Linux admin
2020-08-10  7:39   ` Jakov Petrina
2020-08-07 19:46 ` Andrii Nakryiko
2020-08-10  8:56   ` Jakov Petrina

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=20200807190029.GI1551@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=andrii.nakryiko@gmail.com \
    --cc=andriin@fb.com \
    --cc=bpf@vger.kernel.org \
    --cc=jakov.petrina@sartura.hr \
    --cc=jakov.smolic@sartura.hr \
    --cc=jean-philippe@linaro.org \
    --cc=juraj.vijtiuk@sartura.hr \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=luka.perkov@sartura.hr \
    /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 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).