From: Jiri Olsa <jolsa@redhat.com>
To: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>,
andrii.nakryiko@gmail.com, bpf@vger.kernel.org,
netdev@vger.kernel.org, kernel-team@fb.com,
Andrii Nakryiko <andriin@fb.com>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Alexei Starovoitov <ast@fb.com>, Yonghong Song <yhs@fb.com>,
Martin KaFai Lau <kafai@fb.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: Re: [PATCH bpf-next] kbuild: add ability to generate BTF type info for vmlinux
Date: Thu, 4 Apr 2019 10:47:20 +0200 [thread overview]
Message-ID: <20190404084720.GG32001@krava> (raw)
In-Reply-To: <20190404004042.GA7400@redhat.com>
On Wed, Apr 03, 2019 at 09:40:42PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Wed, Apr 03, 2019 at 11:12:58AM +0200, Jiri Olsa escreveu:
> > On Wed, Apr 03, 2019 at 11:04:28AM +0200, Daniel Borkmann wrote:
> > > On 04/03/2019 10:46 AM, Jiri Olsa wrote:
> > > > On Tue, Apr 02, 2019 at 09:49:50AM -0700, andrii.nakryiko@gmail.com wrote:
> > > >> From: Andrii Nakryiko <andriin@fb.com>
> > > >>
> > > >> This patch adds new config option to trigger generation of BTF type
> > > >> information from DWARF debuginfo for vmlinux and kernel modules through
> > > >> pahole, which in turn relies on libbpf for btf_dedup() algorithm.
> > > > I'm using the latest pahole from git tree:
>
> > > > https://github.com/acmel/dwarves.git
>
> I've updated this oen as well, but the canonical one is at:
>
> git://git.kernel.org/pub/scm/devel/pahole/pahole.git
>
> See the fix below.
>
> > > > and getting pahole crash:
>
> > > > LD vmlinux
> > > > BTF vmlinux
> > > > die__process_inline_expansion: DW_TAG_label (0xa) @ <0x3eef8> not handled!
> > > > scripts/link-vmlinux.sh: line 96: 31222 Segmentation fault (core dumped) LLVM_OBJCOPY=${OBJCOPY} ${PAHOLE} -J ${1}
> > > > make[1]: *** [/home/jolsa/linux/Makefile:1025: vmlinux] Error 139
> > > > make: *** [Makefile:170: sub-make] Error 2
>
> > > > is there some other source/dependency I'm missing?
>
> > > Yesterday night, I've tested with [0] but seems to have the same HEAD as
> > > the github repo you pointed out. Seems the above is coming from pahole's
> > > __die__process_tag() bailing out with default for DW_TAG_label?
>
> > > On my side worked fine:
>
> > hum, I also had to change the version of pahole in the patch to allow
> > version v1.12, because both latest pahole sources are on version 1.12,
> > did u have to do that? looks like there's v1.13 somewhere ;-)
>
> So, I've reproduced the problem and fixed it, please pull my latest
> master branch from git://git.kernel.org/pub/scm/devel/pahole/pahole.git,
> please do the hack to make it expect v1.12, I'll try and relase v1.13
> soon, if nothing else pops up soon.
...
LD vmlinux
BTF vmlinux
SORTEX vmlinux
works nicely now, thanks ;-)
jirka
prev parent reply other threads:[~2019-04-04 8:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-02 16:49 [PATCH bpf-next] kbuild: add ability to generate BTF type info for vmlinux andrii.nakryiko
2019-04-02 17:40 ` David Miller
2019-04-02 23:00 ` Daniel Borkmann
2019-04-03 8:46 ` Jiri Olsa
2019-04-03 9:04 ` Daniel Borkmann
2019-04-03 9:12 ` Jiri Olsa
2019-04-03 9:21 ` Daniel Borkmann
2019-04-03 12:05 ` Arnaldo Carvalho de Melo
2019-04-04 0:40 ` Arnaldo Carvalho de Melo
2019-04-04 8:47 ` Jiri Olsa [this message]
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=20190404084720.GG32001@krava \
--to=jolsa@redhat.com \
--cc=acme@kernel.org \
--cc=acme@redhat.com \
--cc=andrii.nakryiko@gmail.com \
--cc=andriin@fb.com \
--cc=ast@fb.com \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kafai@fb.com \
--cc=kernel-team@fb.com \
--cc=netdev@vger.kernel.org \
--cc=yamada.masahiro@socionext.com \
--cc=yhs@fb.com \
/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).