• Rik van Riel's avatar
    sysrq: add show-backtrace-on-all-cpus function · 5045bcae
    Rik van Riel authored
    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: default avatarRik van Riel <riel@redhat.com>
    Randy Dunlap <randy.dunlap@oracle.com>
    Cc: <lwoodman@redhat.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    5045bcae
sysrq.c 12.8 KB