[PATCH v3 0/3] Support .gnu_debugdata for symbols in perf

From: Stephen Brennan
Date: Fri Mar 07 2025 - 18:22:54 EST


Hello all,

This series adds the ability to read symbols from the ".gnu_debugdata" section
of DSOs. More details are the cover letter of v1. This only has one small change
from v2: it adds the missing entry in dso__symtab_origin(). Its lack resulted in
truncating the output of symbols in "perf report -v" -- thanks to Arnaldo for
testing and catching that.

v2: https://lore.kernel.org/linux-perf-users/20250220185512.3357820-1-stephen.s.brennan@xxxxxxxxxx/
v1: https://lore.kernel.org/linux-perf-users/20250213190542.3249050-1-stephen.s.brennan@xxxxxxxxxx/

Stephen Brennan (3):
tools: perf: add dummy functions for !HAVE_LZMA_SUPPORT
tools: perf: add LZMA decompression from FILE
tools: perf: support .gnu_debugdata for symbols

tools/perf/util/compress.h | 20 +++++++
tools/perf/util/dso.c | 3 +
tools/perf/util/dso.h | 1 +
tools/perf/util/lzma.c | 29 ++++++----
tools/perf/util/symbol-elf.c | 106 ++++++++++++++++++++++++++++++++++-
tools/perf/util/symbol.c | 2 +
6 files changed, 148 insertions(+), 13 deletions(-)

--
2.43.5