bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Alan Maguire <alan.maguire@oracle.com>,
	Jiri Olsa <olsajiri@gmail.com>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Yonghong Song <yhs@fb.com>,
	dwarves@vger.kernel.org, bpf@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [RESEND] BTF is not generated for gcc-built kernel with the latest pahole
Date: Thu, 27 Jul 2023 10:10:22 -0300	[thread overview]
Message-ID: <ZMJsvpddM8M5lbex@kernel.org> (raw)
In-Reply-To: <20230727093814.23681b2b0ac73aa89f368ae8@kernel.org>

Em Thu, Jul 27, 2023 at 09:38:14AM +0900, Masami Hiramatsu escreveu:
> On Wed, 26 Jul 2023 15:46:03 +0100
> Alan Maguire <alan.maguire@oracle.com> wrote:
> 
> > On 26/07/2023 12:07, Masami Hiramatsu (Google) wrote:
> > > Hi Jiri,
> > > 
> > > On Wed, 26 Jul 2023 12:04:08 +0200
> > > Jiri Olsa <olsajiri@gmail.com> wrote:
> > > 
> > >> On Wed, Jul 26, 2023 at 10:25:34AM +0900, Masami Hiramatsu wrote:
> > >>> Hello,
> > >>> (I resend this because kconfig was too big)
> > >>>
> > >>> I found that BTF is not generated for gcc-built kernel with that latest
> > >>> pahole (v1.25).
> > >>
> > >> hi,
> > >> I can't reproduce on my setup with your .config
> > >>
> > >> does 'bpftool btf dump file ./vmlinux' show any error?
> > >>
> > >> is there any error in the kernel build output?
> > > 
> > > Yes, here it is. I saw these 2 lines.
> > > 
> > > die__process: DW_TAG_compile_unit, DW_TAG_type_unit, DW_TAG_partial_unit or DW_TAG_skeleton_unit expected got INVALID (0x0)!
> > > die__process: DW_TAG_compile_unit, DW_TAG_type_unit, DW_TAG_partial_unit or DW_TAG_skeleton_unit expected got INVALID (0x0)!
> > 
> > This is strange, looks like some CUs were encoded incorrectly or we are
> > parsing incorrectly. The error originates in die__process() and happens
> > if the dwarf_tag() associated with the DIE isn't an expected unit; it's
> > not even a valid tag value (0) it looks like. I've not built with gcc 13
> > yet so it's possible that's the reason you're seeing this, I'll try to
> > reproduce it..
> 
> And this warning message is not good for debugging. It would better dump
> the message with DIE index so that we can analyze the DWARF with other
> tools.

Good idea, I'll add that.
 
- Arnaldo

      parent reply	other threads:[~2023-07-27 13:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26  1:25 [RESEND] BTF is not generated for gcc-built kernel with the latest pahole Masami Hiramatsu
2023-07-26 10:04 ` Jiri Olsa
2023-07-26 11:07   ` Masami Hiramatsu
2023-07-26 14:46     ` Alan Maguire
2023-07-27  0:38       ` Masami Hiramatsu
2023-07-27  1:51         ` Masami Hiramatsu
2023-07-31 15:45           ` Alan Maguire
2023-08-01  1:01             ` Masami Hiramatsu
2023-08-01 17:36               ` Alan Maguire
     [not found]                 ` <CA+JHD93Liq95RvfChifmnE7E9mKR42_W7rtpqgY9KAgYyGTZwQ@mail.gmail.com>
2023-08-01 18:28                   ` Fwd: " Arnaldo Carvalho de Melo
2023-08-02  8:02                     ` Masami Hiramatsu
2023-08-01 21:45                 ` Arnaldo Carvalho de Melo
2023-08-02 14:29                   ` Masami Hiramatsu
2023-07-27 13:10         ` Arnaldo Carvalho de Melo [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=ZMJsvpddM8M5lbex@kernel.org \
    --to=acme@kernel.org \
    --cc=acme@redhat.com \
    --cc=alan.maguire@oracle.com \
    --cc=bpf@vger.kernel.org \
    --cc=dwarves@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=olsajiri@gmail.com \
    --cc=rostedt@goodmis.org \
    --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).