Skip to content

perf maps/symbols: Various assert fixes

James Clark linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf symbols: Remove map from list before updating addressestools/perf/util/symbol.c+6 -40 replies
2/4perf maps: Re-use __maps__free_maps_by_name()tools/perf/util/maps.c+7 -72 replies
3/4perf symbols: Update kcore map before merging in remaining symbolstools/perf/util/symbol.c+21 -193 replies
4/4perf symbols: Fix ownership of string in dso__load_vmlinux()tools/perf/util/symbol.c+8 -31 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchIan Rogers
1/4
2/4R-b
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] perf maps/symbols: Various assert fixes

A few different asserts are hit when running perf report on minimal Arm systems when kcore is used, or the .debug/ info can't be loaded or /boot isn't mounted etc.

These result in some less common paths being hit for resolving symbols and things are done in an order that breaks some assumptions. I'm not sure if we could do something to make the tests pick this up, but maybe not easily if it would involve mocking the filesystem or even a specific kernel. I tried a few different variations of --kcore and --vmlinux arguments but ultimately I could only reproduce these issues by running on specific kernels and root filesystems.

James Clark (4):
perf symbols: Remove map from list before updating addresses perf maps: Re-use __maps__free_maps_by_name()
perf symbols: Update kcore map before merging in remaining symbols perf symbols: Fix ownership of string in dso__load_vmlinux()

 tools/perf/util/maps.c   | 14 ++++++------
 tools/perf/util/symbol.c | 49 ++++++++++++++++++++++++----------------
 2 files changed, 36 insertions(+), 27 deletions(-)
Signature · 1 line
2.34.1