Skip to contentSkip to conversation

perf: arm_spe: Print the version of SPE detected

PATCH Applied Rob Herring 2 participants 2 messages Feb 6, 2023 – Feb 7, 2023 Arm PMU profiling and debugging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: arm_spe: Print the version of SPE detected

There's up to 4 versions of SPE now. Let's add the version that's been detected to the driver's informational print out.

---
 drivers/perf/arm_spe_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/perf/arm_spe_pmu.c +2 -2
index 573db4211acd..b9ba4c4fe5a2 100644
@@ -1105,8 +1105,8 @@ static void __arm_spe_pmu_dev_probe(void *info)
 	}
 
 	dev_info(dev,
-		 "probed for CPUs %*pbl [max_record_sz %u, align %u, features 0x%llx]\n",
-		 cpumask_pr_args(&spe_pmu->supported_cpus),
+		 "probed SPEv1.%d for CPUs %*pbl [max_record_sz %u, align %u, features 0x%llx]\n",
+		 spe_pmu->pmsver - 1, cpumask_pr_args(&spe_pmu->supported_cpus),
 		 spe_pmu->max_record_sz, spe_pmu->align, spe_pmu->features);
 
 	spe_pmu->features |= SPE_PMU_FEAT_DEV_PROBED;
Signature · 1 line
2.39.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Rob Herring

There's up to 4 versions of SPE now. Let's add the version that's been detected to the driver's informational print out.

Applied to will (for-next/perf), thanks!

[1/1] perf: arm_spe: Print the version of SPE detected

      https://git.kernel.org/will/c/e8a709dc2a91

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev