]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf arm-spe: Use metadata to decide the data source feature
authorLeo Yan <leo.yan@arm.com>
Thu, 3 Oct 2024 18:53:19 +0000 (19:53 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 14 Oct 2024 19:04:31 +0000 (12:04 -0700)
commitba5e7169e5483a61899497e23fa18f7ef33aa827
tree7b66874d8f8cafe013dcb8f67b23252b86625b79
parent56ae663e7636f2ce180201f0f18d7736c319a43f
perf arm-spe: Use metadata to decide the data source feature

Use the info in the metadata to decide if the data source feature is
supported. The CPU MIDR must be in the CPU list for the common data
source encoding.

For the metadata version 1, it doesn't include info for MIDR. In this
case, due to absent info for making decision, print out warning to
remind users to upgrade tool and returns false.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20241003185322.192357-5-leo.yan@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/arm-spe.c