Re: [PATCH v2 0/2] Fix srcline addr2line issue with the ',' sentinel

From: Changbin Du
Date: Tue Jun 13 2023 - 00:03:05 EST


The problem is fixed, thanks!

Tested-by: Changbin Du <changbin.du@xxxxxxxxxx>

On Mon, Jun 12, 2023 at 08:48:15PM -0700, Ian Rogers wrote:
> addr2line makes it hard to detect when inline output has finished. To
> detect it srcline issues a bogus ',' symbol and expects to see a
> filename:line of "??:0". For binutils addr2line ',' gets turned into
> address 0 and if there is a symbol there then the sentinel isn't
> detected, this problem has been occurring with kernel binaries.
>
> The issue was reported by and debugged by Changbin Du <changbin.du@xxxxxxxxxx>.
>
> v2. Incorporate feedback from Changbin.
>
> Ian Rogers (2):
> perf srcline: Make addr2line configuration failure more verbose
> perf srcline: Make sentinel reading for binutils addr2line more robust
>
> tools/perf/util/srcline.c | 93 ++++++++++++++++++++++++++++++---------
> 1 file changed, 73 insertions(+), 20 deletions(-)
>
> --
> 2.41.0.162.gfafddb0af9-goog
>

--
Cheers,
Changbin Du