Skip to content

Fix srcline addr2line issue with the ',' sentinel

Ian Rogers linux-perf-users lkml llvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf srcline: Make addr2line configuration failure more verbosetools/perf/util/srcline.c+21 -130 replies
2/2perf srcline: Make sentinel reading for binutils addr2line more robusttools/perf/util/srcline.c+53 -80 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchChangbin Du
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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 <[email protected]>.

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(-)
Signature · 1 line
2.41.0.162.gfafddb0af9-goog