Skip to content

maps memory improvements and fixes

Ian Rogers bpf linux-perf-users lkml 3 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 5 repliesApplied
  2. v26 patches 6 repliesSuperseded
  3. v16 patches 2 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6perf maps: Switch from rbtree to lazily sorted array for addressestools/perf/tests/maps.c tools/perf/util/map.c tools/perf/util/maps.c +1 more+777 -4844 replies
2/6perf maps: Get map before returning in maps__findtools/perf/arch/x86/tests/dwarf-unwind.c tools/perf/tests/vmlinux-kallsyms.c tools/perf/util/bpf-event.c +4 more+26 -270 replies
3/6perf maps: Get map before returning in maps__find_by_nametools/perf/tests/vmlinux-kallsyms.c tools/perf/util/machine.c tools/perf/util/maps.c +3 more+25 -150 replies
4/6perf maps: Get map before returning in maps__find_next_entrytools/perf/util/machine.c tools/perf/util/maps.c+4 -20 replies
5/6perf maps: Hide maps internalstools/perf/tests/thread-maps-share.c tools/perf/util/callchain.c tools/perf/util/maps.c +6 more+124 -1020 replies
6/6perf maps: Locking tidy up of nr_mapstools/perf/util/machine.c tools/perf/util/maps.c tools/perf/util/maps.h+11 -50 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchNamhyung Kim
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6A-b
6/6A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/6] maps memory improvements and fixes

First 6 patches from:
https://lore.kernel.org/lkml/[email protected]/

v3. Fix latent concurrent modification bug in maps__for_each_map. v2. Fix NO_LIBUNWIND=1 build issue.

Ian Rogers (6):
perf maps: Switch from rbtree to lazily sorted array for addresses perf maps: Get map before returning in maps__find
perf maps: Get map before returning in maps__find_by_name perf maps: Get map before returning in maps__find_next_entry perf maps: Hide maps internals
perf maps: Locking tidy up of nr_maps

 tools/perf/arch/x86/tests/dwarf-unwind.c |    1 +
 tools/perf/tests/maps.c                  |    3 +
 tools/perf/tests/thread-maps-share.c     |    8 +-
 tools/perf/tests/vmlinux-kallsyms.c      |   10 +-
 tools/perf/util/bpf-event.c              |    1 +
 tools/perf/util/callchain.c              |    2 +-
 tools/perf/util/event.c                  |    4 +-
 tools/perf/util/machine.c                |   34 +-
 tools/perf/util/map.c                    |    1 +
 tools/perf/util/maps.c                   | 1302 ++++++++++++++--------
 tools/perf/util/maps.h                   |   65 +-
 tools/perf/util/probe-event.c            |    1 +
 tools/perf/util/symbol-elf.c             |    4 +-
 tools/perf/util/symbol.c                 |   31 +-
 tools/perf/util/thread.c                 |    2 +-
 tools/perf/util/unwind-libdw.c           |    2 +-
 tools/perf/util/unwind-libunwind-local.c |    2 +-
 tools/perf/util/unwind-libunwind.c       |    7 +-
 18 files changed, 906 insertions(+), 574 deletions(-)
Signature · 1 line
2.43.0.687.g38aa6559b0-goog