Skip to content

perf libdw: Improve split-debug handling and error fallback

Ian Rogers linux-perf-users lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf libdw: Pass dso_name explicitly to properly anchor split-debug buildstools/perf/arch/powerpc/util/skip-callchain-idx.c tools/perf/util/dso.h tools/perf/util/libdw.c +2 more+13 -110 replies
2/2perf libdw: Optimize fallback logic for missing DWARFtools/perf/util/libdw.c tools/perf/util/srcline.c tools/perf/util/unwind-libdw.c+23 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] perf libdw: Improve split-debug handling and error fallback

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(-)
Signature · 1 line
2.55.0.766.g2966f0265a-goog