cpumf/pai: Extract type number from PMU named pai_ext

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 <tmricht@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Thomas Richter
2022-06-21 15:30:26 +02:00
committed by Jan Höppner
parent 15158ee0ca
commit e4733002da

View File

@@ -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 |