linux-stable/arch
Heiko Carstens 608e261968 generic bug: use show_regs() instead of dump_stack()
The current generic bug implementation has a call to dump_stack() in case a
WARN_ON(whatever) gets hit.  Since report_bug(), which calls dump_stack(),
gets called from an exception handler we can do better: just pass the
pt_regs structure to report_bug() and pass it to show_regs() in case of a
warning.  This will give more debug informations like register contents,
etc...  In addition this avoids some pointless lines that dump_stack()
emits, since it includes a stack backtrace of the exception handler which
is of no interest in case of a warning.  E.g.  on s390 the following lines
are currently always present in a stack backtrace if dump_stack() gets
called from report_bug():

 [<000000000001517a>] show_trace+0x92/0xe8)
 [<0000000000015270>] show_stack+0xa0/0xd0
 [<00000000000152ce>] dump_stack+0x2e/0x3c
 [<0000000000195450>] report_bug+0x98/0xf8
 [<0000000000016cc8>] illegal_op+0x1fc/0x21c
 [<00000000000227d6>] sysc_return+0x0/0x10

Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Kyle McMartin <kyle@parisc-linux.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:51 -07:00
..
alpha alpha: fix trivial section mismatch warnings 2007-07-16 09:05:37 -07:00
arm Merge branch 'ioat-md-accel-for-linus' of git://lost.foo-projects.org/~dwillia2/git/iop 2007-07-13 10:52:27 -07:00
arm26 dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs 2007-07-16 09:05:45 -07:00
avr32 generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
blackfin Blackfin arch: add missing CONFIG_LARGE_ALLOCS when upstream merging 2007-07-12 14:55:05 +08:00
cris CRIS: replace old-style member inits with designated inits 2007-07-16 09:05:38 -07:00
frv FRV: Remove some dead code 2007-07-16 09:05:37 -07:00
h8300 dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs 2007-07-16 09:05:45 -07:00
i386 generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
ia64 diskquota: 32bit quota tools on 64bit architectures 2007-07-16 09:05:48 -07:00
m32r dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs 2007-07-16 09:05:45 -07:00
m68k x86_64: Quieten Atari keyboard warnings in Kconfig 2007-06-20 14:27:26 -07:00
m68knommu m68knommu: remove old cache management cruft from mm code 2007-07-16 09:05:37 -07:00
mips [MIPS] Make show_code static and add __user tag 2007-07-13 17:40:01 +01:00
parisc generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
powerpc generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
ppc generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
s390 generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
sh generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
sh64 sh64: Handle -ERESTART_RESTARTBLOCK for restartable syscalls. 2007-06-19 12:41:32 +09:00
sparc page table handling cleanup 2007-07-16 09:05:36 -07:00
sparc64 PCI: Only build PCI syscalls on architectures that want them 2007-07-11 16:02:13 -07:00
um uml: remove dead file 2007-07-16 09:05:39 -07:00
v850 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
x86_64 generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
xtensa [XTENSA] Remove non-rt signal handling 2007-05-31 17:49:32 -07:00