*** This bug is a duplicate of bug 2103415 ***
https://bugs.launchpad.net/bugs/2103415
------- Comment From [email protected] 2025-09-03 05:31 EDT-------
Copied from bz 211786 comment 14.
I looked at this repo:
url = https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy
$ git log|head -8
commit 0ee81da15edce5acd1f1d3f6df05c25563ea165b
Author: Mehmet Basaran <[email protected]>
Date: Sat Aug 9 02:40:31 2025 +0300
UBUNTU: Ubuntu-5.15.0-156.166
Signed-off-by: Mehmet Basaran <[email protected]>
$ git branch
master
master-next
* master-prep
z17-toleration
I hope that is a pretty recent one.
You are correct, the directory:
$ ll tools/perf/pmu-events/arch/s390/
total 28
drwxrwxr-x 2 tmricht tmricht 4096 Aug 23 2023 cf_z10/
drwxrwxr-x 2 tmricht tmricht 4096 Aug 23 2023 cf_z13/
drwxrwxr-x 2 tmricht tmricht 4096 Aug 23 2023 cf_z14/
drwxrwxr-x 2 tmricht tmricht 4096 Aug 23 2023 cf_z15/
drwxrwxr-x 2 tmricht tmricht 4096 Aug 23 2023 cf_z196/
drwxrwxr-x 2 tmricht tmricht 4096 Aug 23 2023 cf_zec12/
-rw-rw-r-- 1 tmricht tmricht 366 Aug 23 2023 mapfile.csv
$
does not contain the perf json files for z16.
Interesting is the kernel supports z16, the file
arch/s390/kernel/perf_cpum_cf_events.c supports all z16 counter sets.
It just missing in the perf tool.
To update Ubuntu 22.04 (jammy) perf-tool to the latest s390 counter set
definition for machines z13 to z17 apply the following patches
in that sequence (it worked for me):
7f76b31130680 perf list: Add IBM z16 event description for s390
74395567a3011 perf vendor events s390: Add common metrics
1158a21357abe perf vendor events s390: Add cache metrics for z13
90a22bc2e01ee perf vendor events s390: Add cache metrics for z14
48346c0fe5187 perf vendor events s390: Add cache metrics for z15
f8a6cea4839bc perf vendor events s390: Add cache metrics for z16
cac6f9bc0d958 perf vendor events s390: Add metric for TLB and cache
34e0ce568b3c0 perf stat: Do not fail on metrics on s390 z/VM systems
9cba16715a528 perf report: Fix PAI counter names for s390 virtual machines
55e25b2aad7a5 perf list: Add IBM z17 event descriptions
The second last patch 9cba16715a528 has a somehow misleading title as
Jammy does not support PAI counters at all, but all this patch does
is changing the machine detection statement in
tools/perf/pmu-events/arch/s390/mapfile.
Hope this helps and let me know if you run into issue.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2121809
Title:
[UBUNTU 22.04] Support CPU-MF Counters for new IBM z17 - perf part
Status in Ubuntu on IBM z Systems:
New
Status in linux package in Ubuntu:
New
Bug description:
Description:
Support for CPU-MF counters of new IBM z17 in Jammy (22.04) and Noble (24.04)
This part covers the perf tools changes.
The required patch for the perf tool to support all IBM z17 counter
sets is the following:
commit 508b228942b291cb69f11027c07ca17ab2ac03bc
perf list: Add IBM z17 event descriptions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2121809/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp