From e4733002dac5cfd08b62644ea422977c497676a2 Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Tue, 21 Jun 2022 15:30:26 +0200 Subject: [PATCH] cpumf/pai: Extract type number from PMU named pai_ext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use PMU named pai_ext to extract the PMU type number required for the installation of PAI NNPA counters using perf_event_open() system call. Signed-off-by: Thomas Richter Signed-off-by: Jan Höppner --- cpumf/pai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpumf/pai.c b/cpumf/pai.c index 67b9e8f1..c4d726e6 100644 --- a/cpumf/pai.c +++ b/cpumf/pai.c @@ -116,7 +116,7 @@ static void ev_alloc(int enr, int cpu, int flags) warnx("NNPA does not support kernel/user space selector"); flags &= ~as; } - event->attr.type = libcpumf_pmutype(S390_SYSFS_PAI_NNPA); + event->attr.type = libcpumf_pmutype(S390_SYSFS_PAI_EXT); break; } event->attr.sample_type = PERF_SAMPLE_TID | PERF_SAMPLE_CPU |