Linux Perf Users
 help / color / mirror / Atom feed
* [PATCH v1] libperf mmap: Arm64: fix transposed reads of counters 12 and 13
@ 2026-11-18 20:00 Ian Rogers
  2026-11-18 20:03 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Rogers @ 2026-11-18 20:00 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Jiri Olsa, Ian Rogers, Adrian Hunter,
	James Clark, Rob Herring, linux-perf-users, linux-kernel

Reported in Sashiko bug linux-3291a858-209c-483a-b4dc-eeb57abdaee6,
the 2 counter read functions for counters 12 and 13 are transposed.

Fixes: 407eb43ae87c ("libperf: Add arm64 support to perf_mmap__read_self()")
Signed-off-by: Ian Rogers <irogers@google.com>
---
 tools/lib/perf/mmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/perf/mmap.c b/tools/lib/perf/mmap.c
index ab3adf1d8baf..92acb0e911f7 100644
--- a/tools/lib/perf/mmap.c
+++ b/tools/lib/perf/mmap.c
@@ -376,8 +376,8 @@ static u64 read_perf_counter(unsigned int counter)
 		read_pmevcntr_9,
 		read_pmevcntr_10,
 		read_pmevcntr_11,
-		read_pmevcntr_13,
 		read_pmevcntr_12,
+		read_pmevcntr_13,
 		read_pmevcntr_14,
 		read_pmevcntr_15,
 		read_pmevcntr_16,
-- 
2.56.1.708.g77570a6a1d-goog


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

end of thread, other threads:[~2026-11-18 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 20:00 [PATCH v1] libperf mmap: Arm64: fix transposed reads of counters 12 and 13 Ian Rogers
2026-11-18 20:03 ` sashiko-bot

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