]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Add global register dumping facility.
authorDavid S. Miller <davem@davemloft.net>
Tue, 20 May 2008 06:46:00 +0000 (23:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 May 2008 07:33:45 +0000 (00:33 -0700)
commitc48b410ef827b44b73075e1af0e18e88a0b6379c
treef255087706b9d176455b17e4384f4632f59f4cde
parenta7744646678f49e9814b6fc7f90a8ca3cbfd7bf8
sparc64: Add global register dumping facility.

When a cpu really is stuck in the kernel, it can be often
impossible to figure out which cpu is stuck where.  The
worst case is when the stuck cpu has interrupts disabled.

Therefore, implement a global cpu state capture that uses
SMP message interrupts which are not disabled by the
normal IRQ enable/disable APIs of the kernel.

As long as we can get a sysrq 'y' to the kernel, we can
get a dump.  Even if the console interrupt cpu is wedged,
we can trigger it from userspace using /proc/sysrq-trigger

The output is made compact so that this facility is more
useful on high cpu count systems, which is where this
facility will likely find itself the most useful :)

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/process.c
arch/sparc64/kernel/smp.c
arch/sparc64/mm/ultra.S
drivers/char/sysrq.c
include/asm-sparc64/ptrace.h
include/asm-sparc64/smp.h