]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add timer, performance monitor and machine check counts to /proc/interrupts
authorAnton Blanchard <anton@samba.org>
Sun, 31 Jan 2010 20:34:06 +0000 (20:34 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 17 Feb 2010 03:02:49 +0000 (14:02 +1100)
commit8daf602847a3696269f9e18116e326b45168f282
tree2d9ce51782997e3ed265dbee7c72c3e7b0c776e3
parentd78da01aac18b24cfa23b5956c07b57fc2599524
powerpc: Add timer, performance monitor and machine check counts to /proc/interrupts

With NO_HZ it is useful to know how often the decrementer is going off. The
patch below adds an entry for it and also adds it into the /proc/stat
summaries.

While here, I added performance monitoring and machine check exceptions.
I found it useful to keep an eye on the PMU exception rate
when using the perf tool. Since it's possible to take a completely
handled machine check on a System p box it also sounds like a good idea to
keep a machine check summary.

The event naming matches x86 to keep gratuitous differences to a minimum.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/hardirq.h
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/time.c
arch/powerpc/kernel/traps.c