------- Comment From [email protected] 2025-09-03 03:16 EDT------- 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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2103415 Title: [25.04 FEAT] [post announcement] [KRN2304] CPU-MF Counters for new IBM Z hardware - perf part To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/2103415/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
