The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1 0/2] perf libdw: Improve split-debug handling and error fallback
@ 2026-08-24  6:28 Ian Rogers
  2026-08-24  6:28 ` [PATCH v1 1/2] perf libdw: Pass dso_name explicitly to properly anchor split-debug builds Ian Rogers
  2026-08-24  6:28 ` [PATCH v1 2/2] perf libdw: Optimize fallback logic for missing DWARF Ian Rogers
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Rogers @ 2026-08-24  6:28 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Jiri Olsa, Ian Rogers, Adrian Hunter, James Clark,
	Tanushree Shah, Michael Liang, Alessio Podda, Shimin Guo,
	linux-perf-users, linux-kernel

This patch series improves libdw's handling of split debuginfo files and its
fallback logic when DWARF data is unstructured or completely absent.

When perf's libdw backend failed to read unwinding or inlining states
due to un-mapped lines (returning 0), the addr2line_style routine fell
back to executing the system's `addr2line` potentially launching many
sub-processes.

Patch 1 Ensures split debug information is properly handled.
Patch 2 checks `dwfl_errmsg(-1)` for "no DWARF" presence to avoid
fallbacks.

Ian Rogers (2):
  perf libdw: Pass dso_name explicitly to properly anchor split-debug
    builds
  perf libdw: Optimize fallback logic for missing DWARF

 .../arch/powerpc/util/skip-callchain-idx.c    |  2 +-
 tools/perf/util/dso.h                         |  5 +++--
 tools/perf/util/libdw.c                       | 21 ++++++++++++-------
 tools/perf/util/libdw.h                       |  5 +++--
 tools/perf/util/srcline.c                     |  4 +++-
 tools/perf/util/unwind-libdw.c                | 15 ++++++++++---
 6 files changed, 36 insertions(+), 16 deletions(-)

-- 
2.55.0.766.g2966f0265a-goog

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-24  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24  6:28 [PATCH v1 0/2] perf libdw: Improve split-debug handling and error fallback Ian Rogers
2026-08-24  6:28 ` [PATCH v1 1/2] perf libdw: Pass dso_name explicitly to properly anchor split-debug builds Ian Rogers
2026-08-24  6:28 ` [PATCH v1 2/2] perf libdw: Optimize fallback logic for missing DWARF Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox