]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf symbol: Support .gnu_debugdata for symbols
authorStephen Brennan <stephen.s.brennan@oracle.com>
Fri, 7 Mar 2025 23:22:03 +0000 (15:22 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 10 Mar 2025 21:37:06 +0000 (14:37 -0700)
commitb10f74308e1305275e69ddde711ec817cc69e306
tree0af41c086246522635994d43e2bdea03b8f39e49
parent71fa411fe8904b6fe62e2bf3c64af48fadf1abfb
perf symbol: Support .gnu_debugdata for symbols

Fedora introduced a "MiniDebuginfo" feature, in which an LZMA-compressed
ELF file is placed inside a section named ".gnu_debugdata". This file
contains nothing but a symbol table, which can be used to supplement the
.dynsym section which only contains required symbols for runtime.

It is supported by GDB for stack traces, but it should be useful for
tracing as well. Implement support for loading symbols from
.gnu_debugdata.

Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250307232206.2102440-4-stephen.s.brennan@oracle.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/dso.c
tools/perf/util/dso.h
tools/perf/util/symbol-elf.c
tools/perf/util/symbol.c