sysrq: add show-backtrace-on-all-cpus function
authorRik van Riel <riel@redhat.com>
Tue, 29 Apr 2008 07:59:21 +0000 (00:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:03 +0000 (08:06 -0700)
commit5045bcae0fb466a1dbb6af0036e56901fd7aafb7
tree3ad84c429ff74ec0f541cc7cf05ab3788114022f
parent6e574195b75543bc6a6240306313988b1952470c
sysrq: add show-backtrace-on-all-cpus function

SysRQ-P is not always useful on SMP systems, since it usually ends up showing
the backtrace of a CPU that is doing just fine, instead of the backtrace of
the CPU that is having problems.

This patch adds SysRQ show-all-cpus(L), which shows the backtrace of every
active CPU in the system.  It skips idle CPUs because some SMP systems are
just too large and we already know what the backtrace of the idle task looks
like.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Rik van Riel <riel@redhat.com>
Randy Dunlap <randy.dunlap@oracle.com>
Cc: <lwoodman@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/sysrq.txt
drivers/char/sysrq.c