mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] perf bench mem: Add support for PROT_MTE
@ 2026-12-01 12:11 Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 1/4] perf bench mem: Report why mmap() failed Pierre-Clément Tosi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pierre-Clément Tosi @ 2026-12-01 12:11 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, James Clark
  Cc: Ankur Arora, linux-perf-users, linux-kernel,
	Pierre-Clément Tosi, Catalin Marinas, Ryan Roberts,
	linux-arm-kernel

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>


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

* [PATCH 1/4] perf bench mem: Report why mmap() failed
  2026-12-01 12:11 [PATCH 0/4] perf bench mem: Add support for PROT_MTE Pierre-Clément Tosi
@ 2026-12-01 12:11 ` Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 2/4] perf bench mem: Pass bench_params to bench_mmap() Pierre-Clément Tosi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Clément Tosi @ 2026-12-01 12:11 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, James Clark
  Cc: Ankur Arora, linux-perf-users, linux-kernel, Pierre-Clément Tosi

When mapping a buffer fails, 'perf bench mem' prints

  # Memory allocation failed - maybe size (1MB) is too large?

whatever the error, and the mmap benchmark records -ENOMEM for any
failure. Errors such as EINVAL or EACCES are then blamed on the size of
the buffers or on the number of hugepages.

Print the error returned by mmap(), and keep the hint about the size
and hugepages for ENOMEM. When several threads fail, report the error
of the first one instead of ORing negative error codes together.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
---
 tools/perf/bench/mem-functions.c | 38 +++++++++++++++++++++++++-------------
 1 file changed, 25 insertions(+), 13 deletions(-)

diff --git a/tools/perf/bench/mem-functions.c b/tools/perf/bench/mem-functions.c
index 5ede52853953..412281b03c75 100644
--- a/tools/perf/bench/mem-functions.c
+++ b/tools/perf/bench/mem-functions.c
@@ -193,6 +193,19 @@ static double timeval2double(struct timeval *ts)
 			printf(" %14lf GB/sec", x / K / K / K);	\
 	} while (0)
 
+static void print_mmap_error(const struct bench_params *p, int err)
+{
+	char sbuf[STRERR_BUFSIZE];
+
+	printf("# Memory allocation failed: %s", str_error_r(err, sbuf, sizeof(sbuf)));
+	if (err == ENOMEM) {
+		printf(" - maybe size (%s) %s?", size_str,
+		       p->page_shift != PAGE_SHIFT_4KB ?
+		       "has insufficient hugepages" : "is too large");
+	}
+	printf("\n");
+}
+
 static void __bench_mem_function(struct bench_mem_info *info, struct bench_params *p,
 				 int r_idx)
 {
@@ -247,8 +260,7 @@ static void __bench_mem_function(struct bench_mem_info *info, struct bench_param
 	if (r->fn.fini) r->fn.fini(info, p, &src, &dst);
 	return;
 out_init_failed:
-	printf("# Memory allocation failed - maybe size (%s) %s?\n", size_str,
-			p->page_shift != PAGE_SHIFT_4KB ? "has insufficient hugepages" : "is too large");
+	print_mmap_error(p, errno);
 	goto out_free;
 }
 
@@ -373,20 +385,21 @@ static void bench_munmap(void *p, size_t size)
 		munmap(p, size);
 }
 
+/* Return true on failure, with errno set. */
 static bool mem_alloc(struct bench_mem_info *info, struct bench_params *p,
 		      void **src, void **dst)
 {
-	bool failed;
-
 	*dst = bench_mmap(p->size, true, p->page_shift);
-	failed = *dst == NULL;
+	if (!*dst)
+		return true;
 
 	if (info->alloc_src) {
 		*src = bench_mmap(p->size, true, p->page_shift);
-		failed = failed || *src == NULL;
+		if (!*src)
+			return true;
 	}
 
-	return failed;
+	return false;
 }
 
 static void mem_free(struct bench_mem_info *info __maybe_unused,
@@ -543,7 +556,7 @@ static void *do_mmap_thread(void *arg)
 
 	return data;
 out:
-	data->error = -ENOMEM;
+	data->error = -errno;
 	return NULL;
 }
 
@@ -580,14 +593,13 @@ static int do_mmap(const struct function *r, struct bench_params *p,
 			update_stats(&stats, t->cycles);
 		else
 			update_stats(&stats, t->tv.tv_sec * 1e6 + t->tv.tv_usec);
-		error |= data[i].error;
+		if (!error)
+			error = data[i].error;
 	}
 	free(data);
 
-	if (error) {
-		printf("# Memory allocation failed - maybe size (%s) %s?\n", size_str,
-		       p->page_shift != PAGE_SHIFT_4KB ? "has insufficient hugepages" : "is too large");
-	}
+	if (error)
+		print_mmap_error(p, -error);
 	return error ? -1 : 0;
 }
 

-- 
2.56.1.839.g22a8290db9-goog


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

* [PATCH 2/4] perf bench mem: Pass bench_params to bench_mmap()
  2026-12-01 12:11 [PATCH 0/4] perf bench mem: Add support for PROT_MTE Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 1/4] perf bench mem: Report why mmap() failed Pierre-Clément Tosi
@ 2026-12-01 12:11 ` Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 3/4] perf bench mem: Add --prot option Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 4/4] perf bench mem: Support PROT_MTE on arm64 Pierre-Clément Tosi
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Clément Tosi @ 2026-12-01 12:11 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, James Clark
  Cc: Ankur Arora, linux-perf-users, linux-kernel, Pierre-Clément Tosi

Make the functions take a single argument so that subsequent changes can
add new parameters without more plumbing; no functional change intended.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
---
 tools/perf/bench/mem-functions.c | 50 +++++++++++++++++++++++-----------------
 1 file changed, 29 insertions(+), 21 deletions(-)

diff --git a/tools/perf/bench/mem-functions.c b/tools/perf/bench/mem-functions.c
index 412281b03c75..92f41820137f 100644
--- a/tools/perf/bench/mem-functions.c
+++ b/tools/perf/bench/mem-functions.c
@@ -86,6 +86,7 @@ struct bench_params {
 	unsigned int	nr_loops;
 	unsigned int	page_shift;
 	unsigned int	seed;
+	bool		populate;
 };
 
 struct bench_mem_info {
@@ -103,7 +104,7 @@ typedef void (*mem_fini_t)(struct bench_mem_info *, struct bench_params *,
 			   void **, void **);
 typedef void *(*memcpy_t)(void *, const void *, size_t);
 typedef void *(*memset_t)(void *, int, size_t);
-typedef void (*mmap_op_t)(void *, size_t, unsigned int, bool);
+typedef void (*mmap_op_t)(void *, const struct bench_params *);
 
 struct function {
 	const char *name;
@@ -365,18 +366,19 @@ static int do_memcpy(const struct function *r, struct bench_params *p,
 	return 0;
 }
 
-static void *bench_mmap(size_t size, bool populate, unsigned int page_shift)
+static void *bench_mmap(const struct bench_params *p)
 {
-	void *p;
-	int extra = populate ? MAP_POPULATE : 0;
+	int flags = MAP_PRIVATE | MAP_ANONYMOUS;
+	void *addr;
 
-	if (page_shift != PAGE_SHIFT_4KB)
-		extra |= MAP_HUGETLB | (page_shift << MAP_HUGE_SHIFT);
+	if (p->populate)
+		flags |= MAP_POPULATE;
+	if (p->page_shift != PAGE_SHIFT_4KB)
+		flags |= MAP_HUGETLB | (p->page_shift << MAP_HUGE_SHIFT);
 
-	p = mmap(NULL, size, PROT_READ|PROT_WRITE,
-		 extra | MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
+	addr = mmap(NULL, p->size, PROT_READ | PROT_WRITE, flags, 0, 0);
 
-	return p == MAP_FAILED ? NULL : p;
+	return addr == MAP_FAILED ? NULL : addr;
 }
 
 static void bench_munmap(void *p, size_t size)
@@ -389,12 +391,14 @@ static void bench_munmap(void *p, size_t size)
 static bool mem_alloc(struct bench_mem_info *info, struct bench_params *p,
 		      void **src, void **dst)
 {
-	*dst = bench_mmap(p->size, true, p->page_shift);
+	p->populate = true;
+
+	*dst = bench_mmap(p);
 	if (!*dst)
 		return true;
 
 	if (info->alloc_src) {
-		*src = bench_mmap(p->size, true, p->page_shift);
+		*src = bench_mmap(p);
 		if (!*src)
 			return true;
 	}
@@ -504,17 +508,20 @@ int bench_mem_memset(int argc, const char **argv)
 	return bench_mem_common(argc, argv, &info);
 }
 
-static void mmap_page_touch(void *dst, size_t size, unsigned int page_shift, bool random)
+static void mmap_page_touch(void *dst, const struct bench_params *p)
 {
-	unsigned long npages = size / (1 << page_shift);
-	unsigned long offset = 0, r = 0;
+	unsigned long page_size = 1UL << p->page_shift;
+	unsigned long npages = p->size / page_size;
 
 	for (unsigned long i = 0; i < npages; i++) {
-		if (random)
-			r = rand() % (1 << page_shift);
+		char *addr = (char *)dst + page_size * i;
+		char val = (char)i;
+
+		if (p->seed)
+			addr += rand() % page_size;
 
-		*((char *)dst + offset + r) = *(char *)(dst + offset + r) + i;
-		offset += 1 << page_shift;
+		val += READ_ONCE(*addr);
+		WRITE_ONCE(*addr, val);
 	}
 }
 
@@ -534,7 +541,6 @@ static void *do_mmap_thread(void *arg)
 	struct bench_params *p = data->params;
 	union bench_clock start, end, diff;
 	mmap_op_t fn = r->fn.mmap_op;
-	bool populate = strcmp(r->name, "populate") == 0;
 	void *dst;
 
 	if (data->seed)
@@ -542,11 +548,11 @@ static void *do_mmap_thread(void *arg)
 
 	for (unsigned int i = 0; i < p->nr_loops; i++) {
 		clock_get(&start);
-		dst = bench_mmap(p->size, populate, p->page_shift);
+		dst = bench_mmap(p);
 		if (!dst)
 			goto out;
 
-		fn(dst, p->size, p->page_shift, p->seed);
+		fn(dst, p);
 		clock_get(&end);
 		diff = clock_diff(&start, &end);
 		clock_accum(&data->result, &diff);
@@ -573,6 +579,8 @@ static int do_mmap(const struct function *r, struct bench_params *p,
 		return -1;
 	}
 
+	p->populate = !strcmp(r->name, "populate");
+
 	for (unsigned int i = 0; i < nr_threads; i++) {
 		data[i].func = r;
 		data[i].params = p;

-- 
2.56.1.839.g22a8290db9-goog


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

* [PATCH 3/4] perf bench mem: Add --prot option
  2026-12-01 12:11 [PATCH 0/4] perf bench mem: Add support for PROT_MTE Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 1/4] perf bench mem: Report why mmap() failed Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 2/4] perf bench mem: Pass bench_params to bench_mmap() Pierre-Clément Tosi
@ 2026-12-01 12:11 ` Pierre-Clément Tosi
  2026-12-01 12:11 ` [PATCH 4/4] perf bench mem: Support PROT_MTE on arm64 Pierre-Clément Tosi
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Clément Tosi @ 2026-12-01 12:11 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, James Clark
  Cc: Ankur Arora, linux-perf-users, linux-kernel, Pierre-Clément Tosi

Allow callers to control the prot passed to mmap(), defaulting to R/W.

Adapt the page accesses within the benchmark accordingly: load only if
the page is readable (triggers fault-in) and store only when writable
(triggers CoW). Add 'exec' for completeness, although mappings that are
neither readable nor writable are not accessed.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
---
 tools/perf/Documentation/perf-bench.txt | 18 +++++++++++++
 tools/perf/bench/mem-functions.c        | 46 ++++++++++++++++++++++++++++++---
 2 files changed, 61 insertions(+), 3 deletions(-)

diff --git a/tools/perf/Documentation/perf-bench.txt b/tools/perf/Documentation/perf-bench.txt
index c65dd8f4131f..0a3ad2284f19 100644
--- a/tools/perf/Documentation/perf-bench.txt
+++ b/tools/perf/Documentation/perf-bench.txt
@@ -209,6 +209,10 @@ Repeat memcpy invocation this number of times.
 --cycles::
 Use perf's cpu-cycles event instead of gettimeofday syscall.
 
+--prot=<PROT>::
+Specify memory protection for mapping memory buffers (default:
+read,write). See the *mmap* options.
+
 *memset*::
 Suite for evaluating performance of simple memory set in various ways.
 
@@ -243,6 +247,10 @@ Repeat memset invocation this number of times.
 --cycles::
 Use perf's cpu-cycles event instead of gettimeofday syscall.
 
+--prot=<PROT>::
+Specify memory protection for mapping memory buffers (default:
+read,write). See the *mmap* options.
+
 *mmap*::
 Suite for evaluating memory subsystem performance for mmap()'d memory.
 
@@ -281,6 +289,16 @@ Use perf's cpu-cycles event instead of gettimeofday syscall.
 --threads=<NUM>::
 Create multiple threads to call mmap/munmap concurrently.
 
+--prot=<PROT>::
+Specify memory protection for mapping memory buffers (default:
+read,write). Available values are none, read, write and exec, as a
+comma-separated list.
+The benchmark loads from each page of a readable mapping and stores to
+each page of a writable one: 'read' maps the zero page, 'write' takes a
+single write fault per page, and 'read,write' maps the zero page before
+breaking copy-on-write. Mappings that are neither readable nor writable
+are not accessed.
+
 SUITES FOR 'numa'
 ~~~~~~~~~~~~~~~~~
 *mem*::
diff --git a/tools/perf/bench/mem-functions.c b/tools/perf/bench/mem-functions.c
index 92f41820137f..84247f83da59 100644
--- a/tools/perf/bench/mem-functions.c
+++ b/tools/perf/bench/mem-functions.c
@@ -39,6 +39,7 @@ static const char	*size_str	= "1MB";
 static const char	*function_str	= "all";
 static const char	*page_size_str	= "4KB";
 static const char	*chunk_size_str	= "0";
+static const char	*prot_str	= "read,write";
 static unsigned int	nr_loops	= 1;
 static bool		use_cycles;
 static int		cycles_fd;
@@ -63,6 +64,9 @@ static const struct option bench_common_options[] = {
 	OPT_BOOLEAN('c', "cycles", &use_cycles,
 		    "Use a cycles event instead of gettimeofday() to measure performance"),
 
+	OPT_STRING(0, "prot", &prot_str, "read,write",
+		   "Memory protection: none, read, write, exec (comma-separated)"),
+
 	OPT_END()
 };
 
@@ -86,6 +90,7 @@ struct bench_params {
 	unsigned int	nr_loops;
 	unsigned int	page_shift;
 	unsigned int	seed;
+	int		prot;
 	bool		populate;
 };
 
@@ -265,6 +270,30 @@ static void __bench_mem_function(struct bench_mem_info *info, struct bench_param
 	goto out_free;
 }
 
+static int parse_arg_prot(const char *str)
+{
+	int prot = 0;
+
+	for (;;) {
+		size_t len = strcspn(str, ",");
+
+		if (len == strlen("none") && !strncmp(str, "none", len))
+			prot |= PROT_NONE;
+		else if (len == strlen("read") && !strncmp(str, "read", len))
+			prot |= PROT_READ;
+		else if (len == strlen("write") && !strncmp(str, "write", len))
+			prot |= PROT_WRITE;
+		else if (len == strlen("exec") && !strncmp(str, "exec", len))
+			prot |= PROT_EXEC;
+		else
+			return -1;
+
+		if (!str[len])
+			return prot;
+		str += len + 1;
+	}
+}
+
 static int bench_mem_common(int argc, const char **argv, struct bench_mem_info *info)
 {
 	int i;
@@ -281,6 +310,12 @@ static int bench_mem_common(int argc, const char **argv, struct bench_mem_info *
 		}
 	}
 
+	p.prot = parse_arg_prot(prot_str);
+	if (p.prot < 0) {
+		fprintf(stderr, "Invalid prot:%s\n", prot_str);
+		return 1;
+	}
+
 	p.nr_loops = nr_loops;
 	p.size = (size_t)perf_atoll((char *)size_str);
 
@@ -376,7 +411,7 @@ static void *bench_mmap(const struct bench_params *p)
 	if (p->page_shift != PAGE_SHIFT_4KB)
 		flags |= MAP_HUGETLB | (p->page_shift << MAP_HUGE_SHIFT);
 
-	addr = mmap(NULL, p->size, PROT_READ | PROT_WRITE, flags, 0, 0);
+	addr = mmap(NULL, p->size, p->prot, flags, 0, 0);
 
 	return addr == MAP_FAILED ? NULL : addr;
 }
@@ -513,6 +548,9 @@ static void mmap_page_touch(void *dst, const struct bench_params *p)
 	unsigned long page_size = 1UL << p->page_shift;
 	unsigned long npages = p->size / page_size;
 
+	if (!(p->prot & (PROT_READ | PROT_WRITE)))
+		return;
+
 	for (unsigned long i = 0; i < npages; i++) {
 		char *addr = (char *)dst + page_size * i;
 		char val = (char)i;
@@ -520,8 +558,10 @@ static void mmap_page_touch(void *dst, const struct bench_params *p)
 		if (p->seed)
 			addr += rand() % page_size;
 
-		val += READ_ONCE(*addr);
-		WRITE_ONCE(*addr, val);
+		if (p->prot & PROT_READ)
+			val += READ_ONCE(*addr);
+		if (p->prot & PROT_WRITE)
+			WRITE_ONCE(*addr, val);
 	}
 }
 

-- 
2.56.1.839.g22a8290db9-goog


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

* [PATCH 4/4] perf bench mem: Support PROT_MTE on arm64
  2026-12-01 12:11 [PATCH 0/4] perf bench mem: Add support for PROT_MTE Pierre-Clément Tosi
                   ` (2 preceding siblings ...)
  2026-12-01 12:11 ` [PATCH 3/4] perf bench mem: Add --prot option Pierre-Clément Tosi
@ 2026-12-01 12:11 ` Pierre-Clément Tosi
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Clément Tosi @ 2026-12-01 12:11 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, James Clark
  Cc: Ankur Arora, linux-perf-users, linux-kernel,
	Pierre-Clément Tosi, Catalin Marinas, Ryan Roberts,
	linux-arm-kernel

Add support for '--prot mte,...' to benchmark PROT_MTE mappings.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
---
 tools/perf/Documentation/perf-bench.txt |  7 +++++--
 tools/perf/bench/mem-functions.c        | 11 ++++++++++-
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/tools/perf/Documentation/perf-bench.txt b/tools/perf/Documentation/perf-bench.txt
index 0a3ad2284f19..fd09f3fc206b 100644
--- a/tools/perf/Documentation/perf-bench.txt
+++ b/tools/perf/Documentation/perf-bench.txt
@@ -291,13 +291,16 @@ Create multiple threads to call mmap/munmap concurrently.
 
 --prot=<PROT>::
 Specify memory protection for mapping memory buffers (default:
-read,write). Available values are none, read, write and exec, as a
-comma-separated list.
+read,write). Available values are none, read, write, exec and, on
+arm64, mte (PROT_MTE), as a comma-separated list.
 The benchmark loads from each page of a readable mapping and stores to
 each page of a writable one: 'read' maps the zero page, 'write' takes a
 single write fault per page, and 'read,write' maps the zero page before
 breaking copy-on-write. Mappings that are neither readable nor writable
 are not accessed.
+With mte, the kernel initialises the allocation tags of each page when
+it first maps it, unless the CPU doesn't support MTE, in which case
+mmap() ignores PROT_MTE.
 
 SUITES FOR 'numa'
 ~~~~~~~~~~~~~~~~~
diff --git a/tools/perf/bench/mem-functions.c b/tools/perf/bench/mem-functions.c
index 84247f83da59..722aa4189737 100644
--- a/tools/perf/bench/mem-functions.c
+++ b/tools/perf/bench/mem-functions.c
@@ -29,6 +29,11 @@
 #include <linux/log2.h>
 #include <pthread.h>
 
+/* arm64 only (asm/mman.h), but missing from older C libraries. */
+#if defined(__aarch64__) && !defined(PROT_MTE)
+#define PROT_MTE	0x20
+#endif
+
 #define K 1024
 
 #define PAGE_SHIFT_4KB		12
@@ -65,7 +70,7 @@ static const struct option bench_common_options[] = {
 		    "Use a cycles event instead of gettimeofday() to measure performance"),
 
 	OPT_STRING(0, "prot", &prot_str, "read,write",
-		   "Memory protection: none, read, write, exec (comma-separated)"),
+		   "Memory protection: none, read, write, exec, mte (arm64) (comma-separated)"),
 
 	OPT_END()
 };
@@ -285,6 +290,10 @@ static int parse_arg_prot(const char *str)
 			prot |= PROT_WRITE;
 		else if (len == strlen("exec") && !strncmp(str, "exec", len))
 			prot |= PROT_EXEC;
+#ifdef PROT_MTE
+		else if (len == strlen("mte") && !strncmp(str, "mte", len))
+			prot |= PROT_MTE;
+#endif
 		else
 			return -1;
 

-- 
2.56.1.839.g22a8290db9-goog


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

end of thread, other threads:[~2026-12-01 12:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 12:11 [PATCH 0/4] perf bench mem: Add support for PROT_MTE Pierre-Clément Tosi
2026-12-01 12:11 ` [PATCH 1/4] perf bench mem: Report why mmap() failed Pierre-Clément Tosi
2026-12-01 12:11 ` [PATCH 2/4] perf bench mem: Pass bench_params to bench_mmap() Pierre-Clément Tosi
2026-12-01 12:11 ` [PATCH 3/4] perf bench mem: Add --prot option Pierre-Clément Tosi
2026-12-01 12:11 ` [PATCH 4/4] perf bench mem: Support PROT_MTE on arm64 Pierre-Clément Tosi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®