]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit89713ed10815401a1bfe12e3a076b64048381b56
tree2d9ce51782997e3ed265dbee7c72c3e7b0c776e3
parentfc380c0c8a17bc2bd2d9d7fb41d4a88c3e618db2
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