Messages in this thread | | | Date | Sat, 10 Sep 2016 01:19:11 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: [PATCH v4] genirq: Machine-parsable version of /proc/interrupts |
| |
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@google.com> > +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
| |