mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add virtual counters pai_user and pai_kernel to detail all Processor Activity Instrumentation (PAI) counters in user resp. kernel space. Once activated, they will show all counters for the corresponding set. Add option -n to limit the display to only non-zero counter values. Add support for cpu hotplug events based on libudev. CPU hotplug events are used to either detach from a vanishing CPU or (re-)attach to a (re-)appearing CPU. In that case, a "hotplug detected" virtual counter is set to a non-zero value to indicate possible loss of counters which happens when CPACF is used on the CPU before cpacfstatsd could attach to it. The hotplug indication is cleared once all counters are deactivated. Add support for JSON output. The JSON document is an array of JSON objects representing the counters and their values. Every object has a name (property "counter") and a value (property "value"). For PAI counters, the counters also have a space (property "space") determining the counter set pai_user or pai_kernel, and a numeric id (property "counterid") that can be used to filter the JSON document. Signed-off-by: Juergen Christ <jchrist@linux.ibm.com> Reviewed-By: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>