[Bug 1960118] [NEW] [22.04 FEAT] Add new CPU-MF Counters for new IBM Z Hardware - libpfm part

Launchpad Bug Tracker 1960118 at bugs.launchpad.net
Mon Aug 29 11:48:30 UTC 2022


You have been subscribed to a public bug by Frank Heimes (fheimes):

SRU Justification:
------------------

[Impact]

 * This is an hardware enablement SRU,
   that adds support for the new IBM zSystems hardware in libpfm4.

 * It's in particular to add new CPU-MF Counters
   for new the IBM z16 hardware.

 * Otherwise z16-specific CPU performance measurement facility
   counters cannot be used with libpfm4.

[Fix]

 * b03a81 b03a81ea006658b3aa478e22f4d0b7741cf7346f "s390: Update counter
definition for IBM z16"

[Test Plan]

 * Since libpfm4 is a library, the best was to test it is with the
   help of a brief test program.

 * Install libpfm4-dev_4.11.1+git32-gd0b85fb-1ubuntu0.1_s390x.deb
   and libpfm4_4.11.1+git32-gd0b85fb-1ubuntu0.1_s390x.deb
   on an IBM z16 system (with hardware counters enabled).
   and navigate to /usr/share/doc/libpfm4-dev/examples/ to find the
   two example programs 'check_events' and 'showevtinfo'
   and build or compile them.

 * Alternatively do this based on the raw project sources:
   git clone git://perfmon2.git.sourceforge.net/gitroot/perfmon2/libpfm4
   cd libpfm4
   make

 * Now run the 'showevtinfo' program (in examples subdirectory)
   to get a list of all available events,
   masks and modifiers that are supported
   and look (grep) for z16 related events
   as they are listed in the commit above.

[Where problems could occur]

 * There is not much that can go wrong, other than:

 * syntactical errors (will be identified by a test compile)

 * making use of 'LIBPFM_ARRAY_SIZE(cpumcf_z16_counters)' for
   the wrong machine types (but 3931 and 3932 are z16)

 * or someone added/assigned the wrong set of counters for
   the z16 hardware and machine types.

 * A test package was build for all major architectures
   and is available via this PPA:
   https://launchpad.net/~fheimes/+archive/ubuntu/lp1960118

[Other Info]
 
 * Version libpfm4 4.11.1+git74-g5140ce5 in kinetic has the commit/patch
   already included, since it's a snapshot that was taken after b03a81
   was brought upstream.
__________

Add new CPU-MF Counters for new IBM Z Hardware - libpfm part

Description:
Add new CPU-MF Counters for new IBM Z Hardware.

Has a kernel, s390utils/s390-tools and libpfm part.

Request Type: Package - Update Version
Upstream Acceptance: In Progress

** Affects: ubuntu-z-systems
     Importance: High
     Assignee: Skipper Bug Screeners (skipper-screen-team)
         Status: In Progress

** Affects: libpfm4 (Ubuntu)
     Importance: High
         Status: Fix Released

** Affects: libpfm4 (Ubuntu Jammy)
     Importance: High
     Assignee: Skipper Bug Screeners (skipper-screen-team)
         Status: In Progress

** Affects: libpfm4 (Ubuntu Kinetic)
     Importance: High
         Status: Fix Released


** Tags: architecture-s39064 bugnameltc-196343 severity-high targetmilestone-inin2204
-- 
[22.04 FEAT] Add new CPU-MF Counters for new IBM Z Hardware - libpfm part
https://bugs.launchpad.net/bugs/1960118
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list