From: Michael Petlan <mpetlan@redhat.com>
To: linux-perf-users@vger.kernel.org, acme@redhat.com,
irogers@google.com, namhyung@kernel.org
Cc: jmario@redhat.com, jolsa@kernel.org
Subject: [PATCH 0/4] perf c2c: Detect shared memory cachelines
Date: Mon, 6 Oct 2025 19:57:06 +0200 [thread overview]
Message-ID: <20251006175710.1179040-1-mpetlan@redhat.com> (raw)
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
next reply other threads:[~2025-10-06 17:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-06 17:57 Michael Petlan [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251006175710.1179040-1-mpetlan@redhat.com \
--to=mpetlan@redhat.com \
--cc=acme@redhat.com \
--cc=irogers@google.com \
--cc=jmario@redhat.com \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).