From: Namhyung Kim <namhyung@kernel.org>
To: Michael Petlan <mpetlan@redhat.com>
Cc: linux-perf-users@vger.kernel.org, acme@redhat.com,
irogers@google.com, jmario@redhat.com, jolsa@kernel.org
Subject: Re: [PATCH 0/4] perf c2c: Detect shared memory cachelines
Date: Tue, 7 Oct 2025 17:16:50 +0900 [thread overview]
Message-ID: <aOTMcmg1o2ZWGmFl@google.com> (raw)
In-Reply-To: <20251006175710.1179040-1-mpetlan@redhat.com>
Hello,
On Mon, Oct 06, 2025 at 07:57:06PM +0200, Michael Petlan wrote:
> 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.
Any example output? With a test program would be ideal.
Thanks,
Namhyung
>
> 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 prev parent reply other threads:[~2025-10-07 8:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Namhyung Kim [this message]
2025-10-07 14:38 ` [PATCH 0/4] perf c2c: Detect shared memory cachelines 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=aOTMcmg1o2ZWGmFl@google.com \
--to=namhyung@kernel.org \
--cc=acme@redhat.com \
--cc=irogers@google.com \
--cc=jmario@redhat.com \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mpetlan@redhat.com \
/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).