All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] perf c2c: Detect shared memory cachelines
@ 2025-10-06 17:57 Michael Petlan
  2025-10-06 17:57 ` [PATCH 1/4] perf tools: Remove /SYSV from no_dso maps Michael Petlan
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Michael Petlan @ 2025-10-06 17:57 UTC (permalink / raw)
  To: linux-perf-users, acme, irogers, namhyung; +Cc: jmario, jolsa

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(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-10-07 14:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 17:57 [PATCH 0/4] perf c2c: Detect shared memory cachelines Michael Petlan
2025-10-06 17:57 ` [PATCH 1/4] perf tools: Remove /SYSV from no_dso maps Michael Petlan
2025-10-06 18:01   ` Ian Rogers
2025-10-06 18:28     ` Joe Mario
2025-10-06 19:21       ` Ian Rogers
2025-10-06 17:57 ` [PATCH 2/4] perf c2c: Add shared mem flag Michael Petlan
2025-10-06 17:57 ` [PATCH 3/4] perf c2c: Add map name for cacheline Michael Petlan
2025-10-06 17:57 ` [PATCH 4/4] perf c2c report: Add --detect-shm option Michael Petlan
2025-10-07  8:16 ` [PATCH 0/4] perf c2c: Detect shared memory cachelines Namhyung Kim
2025-10-07 14:38   ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.