]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf arm-spe: Support metadata version 2
authorLeo Yan <leo.yan@arm.com>
Thu, 3 Oct 2024 18:43:01 +0000 (19:43 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 3 Oct 2024 22:23:27 +0000 (15:23 -0700)
commit7842a4b6ff698768ccdb13324c3902a069b5d5dd
tree54546cb2a02a3a0e8c522e2987aa657a0d985c77
parent703f344d0c4a3a006d3e1466d38ee6d8791acd87
perf arm-spe: Support metadata version 2

This commit is to support metadata version 2 and at the meantime it is
backward compatible for version 1's format.

The metadata version 1 doesn't include the ARM_SPE_HEADER_VERSION field.
As version 1 is fixed with two u64 fields, by checking the metadata
size, it distinguishes the metadata is version 1 or version 2 (and any
new versions if later will have). For version 2, it reads out CPU number
and retrieves the metadata info for every CPU.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Cc: Will Deacon <will@kernel.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Besar Wicaksono <bwicaksono@nvidia.com>
Cc: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241003184302.190806-5-leo.yan@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/arm-spe.c