mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Set the counter name for z15 counter numbered 265. It is either named DFLT_CCERROR or DFLT_CCFINISH, depending on the linux version. The counter was renamed from CCERROR to CCFINISH in linux version 5.8. Check for existence of file /sys/devices/cpum_cf/events/DLFT_CCERROR. f this file exists the counter is named DFLT_CCERROR else DFLT_CCFINISH (only for z15), other machines do not have this counter. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>