public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/s390/perf: Register cpumf_pmu with type = PERF_TYPE_RAW
@ 2024-03-04  2:27 JiaLong.Yang
  2024-03-04  9:34 ` Mark Rutland
  0 siblings, 1 reply; 5+ messages in thread
From: JiaLong.Yang @ 2024-03-04  2:27 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle
  Cc: JiaLong.Yang, linux-s390, linux-kernel

The struct pmu cpumf_pmu has handled generic events. So it need some
flags to tell core this thing.

Signed-off-by: JiaLong.Yang <jialong.yang@shingroup.cn>
---
 arch/s390/kernel/perf_cpum_cf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c
index 41ed6e0f0a2a..6ba36cf50091 100644
--- a/arch/s390/kernel/perf_cpum_cf.c
+++ b/arch/s390/kernel/perf_cpum_cf.c
@@ -1213,7 +1213,7 @@ static int __init cpumf_pmu_init(void)
 	debug_register_view(cf_dbg, &debug_sprintf_view);
 
 	cpumf_pmu.attr_groups = cpumf_cf_event_group();
-	rc = perf_pmu_register(&cpumf_pmu, "cpum_cf", -1);
+	rc = perf_pmu_register(&cpumf_pmu, "cpum_cf", PERF_TYPE_RAW);
 	if (rc) {
 		pr_err("Registering the cpum_cf PMU failed with rc=%i\n", rc);
 		goto out2;
-- 
2.25.1


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

end of thread, other threads:[~2024-03-05 14:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-04  2:27 [PATCH] arch/s390/perf: Register cpumf_pmu with type = PERF_TYPE_RAW JiaLong.Yang
2024-03-04  9:34 ` Mark Rutland
2024-03-05  1:43   ` Yang Jialong 杨佳龙
2024-03-05 12:40     ` Mark Rutland
2024-03-05 14:16       ` Jialong Yang

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