[SRU][P/N/J][PATCH 0/3] [25.04 FEAT] [post announcement] [KRN2304] CPU-MF Counters for new IBM Z hardware - perf part (LP: #2103415)

Massimiliano Pellizzer massimiliano.pellizzer at canonical.com
Thu Sep 4 08:11:19 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2103415

[ Impact ]

perf list: Add IBM z17 event descriptions

Update IBM z17 counter description using document SA23-2260-08:
"The Load-Program-Parameter and the CPU-Measurement Facilities"
released in May 2025 to include counter definitions for IBM z17
counter sets:
* Basic counter set
* Problem/user counter set
* Crypto counter set.

Use document SA23-2261-09:
"The CPU-Measurement Facility Extended Counters Definition
 for z10, z196/z114, zEC12/zBC12, z13/z13s, z14, z15, z16 and z17"
released on April 2025 to include counter definitions for IBM z17
* Extended counter set
* MT-Diagnostic counter set.

Use document SA22-7832-14:
"z/Architecture Principles of Operation."
released in April 2025 to include counter definitions for IBM z17
* PAI-Crypto counter set
* PAI-Extention counter set.

Use document
"CPU MF Formulas and Updates April 2025"
released in April 2025 to include metric calculations.

[ Fix ]

Backport the following upstream commit to Jammy, Noble and Plucky:
- 508b228942b2 perf list: Add IBM z17 event descriptions

Since Jammy is missing also IBM z16 descriptions, the following commits are
needed too:
- 7f76b3113068 perf list: Add IBM z16 event description for s390
- 74395567a301 perf vendor events s390: Add common metrics
- 850eea236f8a perf vendor events s390: Add cache metrics for z13
- add7894a25d1 perf vendor events s390: Add cache metrics for z14
- bdecfecac8ab perf vendor events s390: Add cache metrics for z15
- f8a6cea4839b perf vendor events s390: Add cache metrics for z16
- 4c290d4fa3ae perf vendor events s390: Add metric for TLB and cache
- eb2feb68cb7d perf vendor events s390: Remove UTF-8 characters from JSON file
- b6968f9b5035 perf list: fix short description for some cache events
- c2f3d7dfc737 perf stat: Do not fail on metrics on s390 z/VM systems
- b74bc5a633a7 perf report: Fix PAI counter names for s390 virtual machines
- 508b228942b2 perf list: Add IBM z17 event descriptions

[ Test Plan ]

Boot a z17 instance and verify that z17-specific events appear in perf list:
$ perf list

[ Regression Potential ]

The regression potential of this patch is very low,
since it only adds IBM z17-specific perf event descriptions
without touching core perf or kernel logic.
Any issues would be limited to inaccurate or
unsupported counters on z17 systems,
with no impact on other architectures.




More information about the kernel-team mailing list