linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: Josh Poimboeuf <jpoimboe@redhat.com>, Ingo Molnar <mingo@redhat.com>
Cc: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>,
	Srikar Dronamraju <srikar@linux.vnet.ibm.com>,
	Peter Zijlstra <peterz@infradead.org>,
	LKML <linux-kernel@vger.kernel.org>, Jiri Olsa <jolsa@kernel.org>,
	Josh Poimboeuf <jpoimboe@redhat.com>,
	"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] scripts/faddr2line: Fix regression in name resolution on ppc64le
Date: Mon, 14 Nov 2022 12:21:33 +0000	[thread overview]
Message-ID: <0f4decac-1349-3ceb-246c-e648364d797f@csgroup.eu> (raw)
In-Reply-To: <1664532445.32klbp0ljq.naveen@linux.ibm.com>

Gentle ping ... Can this fix be merged ?

Thanks

Le 30/09/2022 à 12:09, Naveen N. Rao a écrit :
> Thadeu Lima de Souza Cascardo wrote:
>> On Tue, Sep 27, 2022 at 01:22:11PM +0530, Srikar Dronamraju wrote:
>>> Commit 1d1a0e7c5100 ("scripts/faddr2line: Fix overlapping text 
>>> section failures")
>>> can cause scripts/faddr2line to fail on ppc64le machines on few
>>> distributions, while working on other distributions. The failure can be
>>> attributed to difference in readelf output on various distributions.
>>>
>>> $ ./scripts/faddr2line vmlinux find_busiest_group+0x00
>>> no match for find_busiest_group+0x00
>>>
>>> Expected output was:
>>> $ ./scripts/faddr2line vmlinux find_busiest_group+0x00
>>> find_busiest_group+0x00/0x3d0:
>>> find_busiest_group at kernel/sched/fair.c:9595
>>>
>>> On ppc64le, readelf adds localentry tag before the symbol name on few
>>> distributions and adds the localentry tag after the symbol name on few
>>> other distributions. This problem has been discussed in the reference
>>> URL given below. This problem can be overcome by filtering out
>>> localentry tags in readelf output. Similar fixes are already present in
>>> kernel by way of commits:
>>>
>>> 1fd6cee127e2 ("libbpf: Fix VERSIONED_SYM_COUNT number parsing")
>>> aa915931ac3e ("libbpf: Fix readelf output parsing for Fedora")
>>>
>>> Fixes: 1d1a0e7c5100 ("scripts/faddr2line: Fix overlapping text 
>>> section failures")
>>> Reference: https://lore.kernel.org/bpf/20191211160133.GB4580@calabresa/
>>> Cc: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
>>> Cc: Jiri Olsa <jolsa@kernel.org>
>>> Cc: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
>>
>> Reviewed-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
>>
>> The other instances of readelf --wide on faddr2line use 
>> --section-headers and
>> should not required the same mangling.
> 
> There's one usage of readelf with --file-header in faddr2line which also 
> doesn't need this. The extra information being printed is from st_other 
> and is very specific to the symbol table.
> 
> Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> 
> 
> - Naveen
> 

  reply	other threads:[~2022-11-14 12:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27  7:52 [PATCH] scripts/faddr2line: Fix regression in name resolution on ppc64le Srikar Dronamraju
2022-09-27 11:19 ` Thadeu Lima de Souza Cascardo
2022-09-30 10:09   ` Naveen N. Rao
2022-11-14 12:21     ` Christophe Leroy [this message]
2022-11-14 19:30       ` Josh Poimboeuf

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=0f4decac-1349-3ceb-246c-e648364d797f@csgroup.eu \
    --to=christophe.leroy@csgroup.eu \
    --cc=cascardo@canonical.com \
    --cc=jolsa@kernel.org \
    --cc=jpoimboe@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mingo@redhat.com \
    --cc=naveen.n.rao@linux.vnet.ibm.com \
    --cc=peterz@infradead.org \
    --cc=srikar@linux.vnet.ibm.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).