[Bug 1893027] Re: [UBUNTU 20.04] lscpumf display raw event number incorrectly
Launchpad Bug Tracker
1893027 at bugs.launchpad.net
Mon Oct 26 09:59:40 UTC 2020
This bug was fixed in the package s390-tools - 2.12.0-0ubuntu3.1
---------------
s390-tools (2.12.0-0ubuntu3.1) focal; urgency=medium
* debian/patches/0082-*.patch .. 0111-*.patch (LP: #1892350)
- Cherrypick patches from upstream, to make zipl boot loader check for
secure IPL feature before looking up data
- Cherrypick 0111-*/fd81728 ("zipl: fix incorrect setup of stage3 flags")
additionally, to fix bug in 0089-*/6c04f97 ("zipl: consolidate
stage3_params structs and stage3 flags")
* d/p/0110-zipl-stage3-correctly-handle-diag308-response-code.patch
- Cherrypick 943c5dc ("zipl/stage3: correctly handle diag308 response
code"), to fix KVM IPL without bootindex= specified (LP: #1888231)
* d/p/0112-cpumf-lscpumf.pl-displays-raw-event-number-incorrect.patch
- Only needed for perl lscpumf in Focal (LP: #1893027)
-- Lukas Märdian <lukas.maerdian at canonical.com> Thu, 01 Oct 2020
12:41:35 +0200
** Changed in: s390-tools (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1893027
Title:
[UBUNTU 20.04] lscpumf display raw event number incorrectly
Status in Ubuntu on IBM z Systems:
Fix Committed
Status in s390-tools package in Ubuntu:
Fix Released
Status in s390-tools source package in Focal:
Fix Released
Bug description:
[Impact]
* lscpumf -c displays the raw counter number incorrectly
* It is always displayed as rXXX (XXX being hex)
* If PMU measurement facility device driver has been registered with a different type than PERF_TYPE_RAW(4) this is incorrect
* It should be displayed as <type>:DDD (DDD being decimal)
* Backported the fix to the legacy lscpumc perl tool. Newer version have converted this tool to C.
[Test Case]
* run lscpumf -c on IBM Z / s390x
* verify output is 'rXXX' (XXX being hex) if type = PERF_TYPE_RAW(4)
* verify output is '<type>:DDD' (DDD being decimal) if type != PERF_TYPE_RAW(4)
To find out with PMU type number has been assigned to
the PMU Measurement facility device driver, type command
cat /sys/devices/cpum_cf/type (for counters)
cat /sys/devices/cpum_cf/type (for sampling)
[Regression Potential]
* regressions in lscpumf could break the visualization of CPU-measurement facilities on IBM Z
* the package is only available on s390x and thus could only affect IBM Z machines
[Other Info]
* Needs to be tested/verified by IBM internally
* Patch was provided by IBM
* Related to LP: #1888231 and LP: #1892350
* This patch is caused by upstream kernel commits: commit 6a82e23f45fe ("s390/cpumf: Adjust registration of s390 PMU device drivers") commit 66d258c5b048 ("perf/core: Optimize perf_init_event()")
* Also fix the rename of counter CCERROR to CCFINISH caused by upstream kernel commit: commit 3d3af181d370 ("s390/cpum_cf,perf: change DFLT_CCERROR counter name")
=== Original Description ===
Fix wrong output of lscpumf when device cpum_cf has different type than 4
Please apply to ubuntu 20.04 (s390-tools version 2.12)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1893027/+subscriptions
More information about the foundations-bugs
mailing list