Re: [PATCH v4] genirq: Machine-parsable version of /proc/interrupts

From: Thomas Gleixner
Date: Fri Sep 09 2016 - 19:21:41 EST


On Fri, 9 Sep 2016, Craig Gallek wrote:
> +What: /sys/kernel/irq/<irq>/per_cpu_count
> +Date: September 2016
> +KernelVersion: 4.9
> +Contact: Craig Gallek <kraig@xxxxxxxxxx>
> +Description: The number of times the interrupt has fired since boot. This
> + is a comma-separated list of counters; one per online CPU in
> + CPU id order. NOTE: If the set of online CPUs changes, the
> + counter positions in this list will also change and counters
> + for offline CPUs will not be available.

More thoughts:

We could easily print all possible cpus here instead of restricting it to
online cpus. The per cpu counters are still available.

That way you can even observe the affinity change after a online or offline
and a tool which is interrested in more than the sum wouldn't have to cope
with changing positions.

Thanks,

tglx