mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
When an unnamed counter is explicitly selected by numeric ID via --counters (for example, --counters=218), show it even when --hide is enabled. Keep --hide effective for unnamed counters that were not explicitly selected. To do that, evaluate the counter filter once per counter and reuse the result to distinguish between a generic match and an explicit numeric-ID match. Suggested-by: Christian Borntraeger <borntraeger@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Polensky <japo@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>