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

From: Ian Rogers
Date: Mon Jun 12 2023 - 23:48:31 EST


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