Skip to content

perf c2c: Detect shared memory cachelines

Michael Petlan linux-perf-users 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf tools: Remove /SYSV from no_dso mapstools/perf/builtin-inject.c tools/perf/util/map.c tools/perf/util/map.h+10 -53 replies
2/4perf c2c: Add shared mem flagtools/perf/builtin-c2c.c+49 -00 replies
3/4perf c2c: Add map name for cachelinetools/perf/builtin-c2c.c+33 -20 replies
4/4perf c2c report: Add --detect-shm optiontools/perf/builtin-c2c.c+66 -360 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] perf c2c: Detect shared memory cachelines

Hello.

Currently, perf-c2c tool has no means to discover a scenario when there is a single cacheline in shared memory, which is mapped to multiple different virtual addresses.

This patchset adds a mechanism to detect this. First, an "S" flag suggests that such scenario may occur (a cacheline in shared memory is captured). Additinally, another option is added (--detect-shm), which zooms to the SHM cacheline and shows the physical addresses too.

Jiri Olsa has drafted this feature some time ago. I have rebased it to current kernel repository shape and reworked several things in it after some discussions with Joe Mario.

Thanks for thoughts and comments.

Michael

Michael Petlan (4):
perf tools: Remove /SYSV from no_dso maps
perf c2c: Add shared mem flag
perf c2c: Add map name for cacheline
perf c2c report: Add --detect-shm option

 tools/perf/builtin-c2c.c    | 178 +++++++++++++++++++++++++++++-------
 tools/perf/builtin-inject.c |   4 +-
 tools/perf/util/map.c       |   5 +-
 tools/perf/util/map.h       |   6 +-
 4 files changed, 154 insertions(+), 39 deletions(-)
Signature · 1 line
2.47.3