From: "Pierre-Clément Tosi" <ptosi@google.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Ian Rogers <irogers@google.com>,
James Clark <james.clark@linaro.org>
Cc: "Ankur Arora" <ankur.a.arora@oracle.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
"Pierre-Clément Tosi" <ptosi@google.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Ryan Roberts" <ryan.roberts@arm.com>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/4] perf bench mem: Add support for PROT_MTE
Date: Tue, 01 Dec 2026 13:11:49 +0100 [thread overview]
Message-ID: <20261201-perf-prot-mte-v1-0-4dc4e1da7460@google.com> (raw)
This series extend 'perf bench' to measure the overhead of mapping MTE
Tagged Memory to userspace, which is useful when evaluating the impact
of a change to page data and tag clearing within the kernel. It adds a
new --prot flag enabling callers to pass PROT_MTE during mmap().
Note that memcpy/memset are also taught about --prot as a side-effect.
As a result, users can reliably measure page tagging through e.g.
perf bench mem mmap -f populate --prot write,mte -s 128MB
Tested with arm64 (GCC) and x86-64 (GCC and Clang) builds.
(Applies cleanly to perf-tools-next at commit 4a7008f739a3)
Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
---
Pierre-Clément Tosi (4):
perf bench mem: Report why mmap() failed
perf bench mem: Pass bench_params to bench_mmap()
perf bench mem: Add --prot option
perf bench mem: Support PROT_MTE on arm64
tools/perf/Documentation/perf-bench.txt | 21 +++++
tools/perf/bench/mem-functions.c | 135 ++++++++++++++++++++++++--------
2 files changed, 123 insertions(+), 33 deletions(-)
---
base-commit: 4a7008f739a30ee4c22d9f21af362a5128f2628d
change-id: 20261201-perf-prot-mte-0ffbf9bc2f7a
Best regards,
--
Pierre-Clément Tosi <ptosi@google.com>
next reply other threads:[~2026-12-01 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 12:11 Pierre-Clément Tosi [this message]
2026-12-01 12:11 ` [PATCH 4/4] perf bench mem: Support PROT_MTE on arm64 Pierre-Clément Tosi
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=20261201-perf-prot-mte-v1-0-4dc4e1da7460@google.com \
--to=ptosi@google.com \
--cc=acme@kernel.org \
--cc=ankur.a.arora@oracle.com \
--cc=catalin.marinas@arm.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=ryan.roberts@arm.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