[PATCH v1 0/9] perf arm-spe: Introduce metadata version 2
From: Leo Yan <leo.yan@arm.com>
Date: 2024-08-27 16:44:34
Also in:
linux-perf-users, lkml
This patch series enhances Arm SPE metadata in the Perf file to a version 2 format. The version 2 metadata contains a global structure with fields for CPU numbers and the metadata version number. 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 set exposes a new sysfs node, ‘lds’ (Load Data Source), which indicates if the Arm SPE supports data source packets. This flag will be used to decide if the data source packet needs to be decoded during the report phase, which will be sent out in a separate series for data source decoding refactoring. This patch series need to be applied on the top of the changes: https://lore.kernel.org/linux-perf-users/20240823113306.2310957-1-leo.yan@arm.com/T/#t (local) Leo Yan (9): perf: arm_spe: Introduce 'lds' capacity perf auxtrace arm: Refactor error handling perf auxtrace arm: Introduce find_auxtrace_pmus_by_name() perf: arm-spe: Record multiple PMUs perf arm-spe: Extend meta data header for 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 drivers/perf/arm_spe_pmu.c | 3 + tools/perf/arch/arm/util/auxtrace.c | 191 +++++++++------------------ tools/perf/arch/arm64/util/arm-spe.c | 126 +++++++++++++++++- tools/perf/util/arm-spe.c | 119 ++++++++++++++++- tools/perf/util/arm-spe.h | 37 +++++- 5 files changed, 328 insertions(+), 148 deletions(-) -- 2.34.1