Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/perf: arm_pmu: Show PMU version on boot
@ 2020-07-30 10:47 Shaokun Zhang
  2020-08-21 16:03 ` Will Deacon
  0 siblings, 1 reply; 7+ messages in thread
From: Shaokun Zhang @ 2020-07-30 10:47 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Shaokun Zhang, Mark Rutland, Will Deacon

The @pmuver field has been initialized and can tell the PMU version.
Let's show it on boot and the user obtains this information directly.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/perf/arm_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c
index df352b334ea7..36f7fad7ba5a 100644
--- a/drivers/perf/arm_pmu.c
+++ b/drivers/perf/arm_pmu.c
@@ -870,8 +870,8 @@ int armpmu_register(struct arm_pmu *pmu)
 	if (!__oprofile_cpu_pmu)
 		__oprofile_cpu_pmu = pmu;
 
-	pr_info("enabled with %s PMU driver, %d counters available\n",
-		pmu->name, pmu->num_events);
+	pr_info("enabled with %s PMU driver, %d counters available, version is %d\n",
+		pmu->name, pmu->num_events, pmu->pmuver);
 
 	return 0;
 
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-09-08 11:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-30 10:47 [PATCH] drivers/perf: arm_pmu: Show PMU version on boot Shaokun Zhang
2020-08-21 16:03 ` Will Deacon
2020-08-26  6:42   ` Shaokun Zhang
2020-09-01 16:16     ` Will Deacon
2020-09-02  1:31       ` Shaokun Zhang
2020-09-07 13:24         ` Will Deacon
2020-09-08 10:59           ` Shaokun Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox