linux_dsm_epyc7002/arch/avr32/kernel
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
..
asm-offsets.c [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
avr32_ksyms.c [AVR32] Export clear_page symbol 2007-01-26 13:12:25 +01:00
cpu.c [AVR32] Clean up cpu identification and add features bitmap 2007-04-27 13:44:13 +02:00
entry-avr32b.S [AVR32] Optimize the TLB miss handler 2007-04-27 13:44:15 +02:00
head.S AVR32: Get rid of board_early_init 2006-11-06 10:43:23 +01:00
init_task.c [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
irq.c [AVR32] Remove bogus comment in arch/avr32/kernel/irq.c 2007-05-13 16:05:59 +02:00
kprobes.c [AVR32] optimize pagefault path 2007-05-13 17:07:46 +02:00
Makefile [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
module.c [AVR32] Clean up exception handling code 2007-04-27 13:44:13 +02:00
process.c wrap access to thread_info 2007-05-09 12:30:56 -07:00
ptrace.c wrap access to thread_info 2007-05-09 12:30:56 -07:00
semaphore.c [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
setup.c [AVR32] Get rid of board_setup_fbmem() 2007-04-27 13:44:15 +02:00
signal.c [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
switch_to.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
sys_avr32.c [PATCH] AVR32: Implement kernel_execve 2006-10-02 07:57:24 -07:00
syscall_table.S [AVR32] Wire up signalfd, timerfd and eventfd 2007-05-13 17:07:57 +02:00
syscall-stubs.S AVR32: Wire up sys_epoll_pwait 2006-11-06 14:07:15 +01:00
time.c [AVR32] Change system timer from count-compare to Timer/Counter 0 2007-04-27 13:44:12 +02:00
traps.c generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
vmlinux.lds.c all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00