mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
15158ee0ca
commit
e4733002da
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user