[PATCH v2 0/8] perf tools: Cleanup dso debug info access
From: Namhyung Kim
Date: Mon Sep 28 2026 - 21:11:54 EST
Hello,
This is a preparation for DSO file access cleanup work. IIUC DSO
access has three types - symbol table, binary data and debug info.
Those information can be placed separately like stripped binaries and
split debug files. I've added dbginfo_type to DSO to track location
of debug info like others.
I'm sending this out before it grows too much. This patchset focuses
on debuginfo open path. Once it looks good to others, I'll update
other places accessing DWARF info to use this info and cleanup other
file type accesses too.
v2 changes)
* check .zdebug_info section as well
* slightly change the order of debug types
v1: https://lore.kernel.org/r/20260928055055.95144-1-namhyung@xxxxxxxxxx
Thanks,
Namhyung
Namhyung Kim (8):
perf tools: Add dso->dbginfo_type field
perf tools: Factor out dso__find_dbginfo_type()
perf tools: Check system path when check debuginfo
perf tools: Export dso__get_filename() with type argument
perf tools: Add dso__put_filename()
perf tools: Avoid repeated failing search for debuginfo
perf tools: Looks symbol file first when check debuginfo
perf tools: Update debuginfo__new() to take DSO
tools/perf/util/debuginfo.c | 51 +++++++++-----------
tools/perf/util/debuginfo.h | 13 ++++-
tools/perf/util/dso.c | 90 +++++++++++++++++++++++++++--------
tools/perf/util/dso.h | 33 +++++++++++++
tools/perf/util/probe-event.c | 4 +-
5 files changed, 137 insertions(+), 54 deletions(-)
--
2.55.0