linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] perf arm-spe: Introduce metadata version 2
@ 2024-09-28 19:55 Leo Yan
  2024-09-28 19:55 ` [PATCH v3 1/5] perf arm-spe: Define metadata header " Leo Yan
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Leo Yan @ 2024-09-28 19:55 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, James Clark, John Garry,
	Will Deacon, Mike Leach, Mark Rutland, Alexander Shishkin,
	Jiri Olsa, Ian Rogers, Adrian Hunter, Liang, Kan, Besar Wicaksono,
	linux-arm-kernel, linux-perf-users
  Cc: Leo Yan

This patch series enhances Arm SPE metadata in the Perf file to a
version 2 format and maintains backward compatibility for metadata v1.

The version 2 metadata contains a global structure with fields for
metadata header version number, header size, CPU numbers. It also
expands to store per-CPU metadata, which includes the CPU logical
number in the kernel, MIDR, and capacity values associated with Arm SPE.

This patch set has been tested the perf to decode the Arm SPE metadata
v1 and v2.

Changes from v2:
- Added comment for arm_spe_find_cpus (Namhyung)
- Corrected resource releasing in arm_spe_save_cpu_header() and
  arm_spe_info_fill() (Namhyung)
- Changed to use calloc() for allocating metadata pointer array
  (Namhyung)

Changes from v1:
- Dropped LDS bit exposing from Arm SPE driver (Will Deacon).
- To simplify the change, this series did not include multiple AUX event
  support.


Leo Yan (5):
  perf arm-spe: Define metadata header version 2
  perf arm-spe: Calculate meta data size
  perf arm-spe: Save per CPU information in metadata
  perf arm-spe: Support metadata version 2
  perf arm-spe: Dump metadata with version 2

 tools/perf/arch/arm64/util/arm-spe.c | 122 +++++++++++++++++++++-
 tools/perf/util/arm-spe.c            | 151 +++++++++++++++++++++++++--
 tools/perf/util/arm-spe.h            |  38 ++++++-
 3 files changed, 296 insertions(+), 15 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-10-02  7:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 19:55 [PATCH v3 0/5] perf arm-spe: Introduce metadata version 2 Leo Yan
2024-09-28 19:55 ` [PATCH v3 1/5] perf arm-spe: Define metadata header " Leo Yan
2024-09-28 19:55 ` [PATCH v3 2/5] perf arm-spe: Calculate meta data size Leo Yan
2024-09-28 19:55 ` [PATCH v3 3/5] perf arm-spe: Save per CPU information in metadata Leo Yan
2024-09-28 19:55 ` [PATCH v3 4/5] perf arm-spe: Support metadata version 2 Leo Yan
2024-10-01 13:53   ` James Clark
2024-10-02  7:47     ` Leo Yan
2024-09-28 19:55 ` [PATCH v3 5/5] perf arm-spe: Dump metadata with " Leo Yan

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).