perf libdw: Improve split-debug handling and error fallback
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | perf libdw: Pass dso_name explicitly to properly anchor split-debug buildstools/ tools/ tools/ +2 more | +13 | 0 replies | |
| 2/2 | perf libdw: Optimize fallback logic for missing DWARFtools/ tools/ tools/ | +23 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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