mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpumf/lswhc: Add short names to lshwc output
Add option -s or --short to display the header using a short counter name. With this option the counter symbol names, which can be very long as in IDCW_ON_DRAWER_DRAWER_HIT are replaced by a shorter name. That name consists of an abbrevation for the counter set this counter belongs to and the counter number in that set. The abbrevations are: B --> Basic counter set P --> Problem state counter set C --> Crypto counter set E --> Extended counter set M --> MT_Diagnostic counter set U --> Undefined counter. Display E165 for counter name IDCW_ON_DRAWER_DRAWER_HIT which is counter number 165 from the extended counter set. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
26cf3ec769
commit
718907d9ba
@@ -27,6 +27,19 @@
|
||||
#define CPUMF_CTRSET_CRYPTO 8
|
||||
#define CPUMF_CTRSET_MT_DIAG 32
|
||||
|
||||
/**
|
||||
* Return counter set a counter belongs to.
|
||||
*
|
||||
* Return the counter set a given counter belongs to, given the
|
||||
* CPU Measurement facility counter version first and second number.
|
||||
*
|
||||
* @param[in] ctr Counter number
|
||||
* @param[in] cfvn CPUM Counter facility first version number
|
||||
* @param[in] csvn CPUM Counter facility second version number
|
||||
* @retval >=0 Counter set number to counter belongs to
|
||||
*/
|
||||
int libcpumf_ctrset(int ctr, int cfvn, int csvn);
|
||||
|
||||
/**
|
||||
* Read out the PMU type from a given file.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user