linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix srcline addr2line issue with the ',' sentinel
@ 2023-06-13  3:48 Ian Rogers
  2023-06-13  3:48 ` [PATCH v2 1/2] perf srcline: Make addr2line configuration failure more verbose Ian Rogers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ian Rogers @ 2023-06-13  3:48 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	Ian Rogers, Adrian Hunter, Nathan Chancellor, Nick Desaulniers,
	Tom Rix, linux-perf-users, linux-kernel, llvm, Changbin Du

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@huawei.com>.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-13  4:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-13  3:48 [PATCH v2 0/2] Fix srcline addr2line issue with the ',' sentinel Ian Rogers
2023-06-13  3:48 ` [PATCH v2 1/2] perf srcline: Make addr2line configuration failure more verbose Ian Rogers
2023-06-13  3:48 ` [PATCH v2 2/2] perf srcline: Make sentinel reading for binutils addr2line more robust Ian Rogers
2023-06-13  4:02 ` [PATCH v2 0/2] Fix srcline addr2line issue with the ',' sentinel Changbin Du

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).