android_kernel_xiaomi_sm8350/arch/parisc/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 rename thread_info to stack 2007-05-09 12:30:56 -07:00
binfmt_elf32.c
cache.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
drivers.c
entry.S [PARISC] fix "reduce size of task_struct on 64-bit machines" fallout 2007-05-30 02:27:46 -04:00
firmware.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
hardware.c [PARISC] fix section mismatches in arch/parisc/kernel 2007-05-27 13:36:27 -04:00
head.S
hpmc.S [PARISC] Fix kernel panic in check_ivt 2007-06-04 02:26:52 -04:00
init_task.c
inventory.c
irq.c [PARISC] remove global_ack_eiem 2007-06-12 01:23:30 -04:00
Makefile
module.c
pa7300lc.c
pacache.S
parisc_ksyms.c
pci-dma.c parisc: convert /proc/gsc/pcxl_dma to seq_file 2007-05-22 22:43:01 -04:00
pci.c
pdc_chassis.c
pdc_cons.c
perf_asm.S
perf_images.h
perf.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
process.c [PARISC] be more defensive in process.c::get_wchan 2007-05-30 02:36:00 -04:00
processor.c [PARISC] fix section mismatches in arch/parisc/kernel 2007-05-27 13:36:27 -04:00
ptrace.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
real2.S
semaphore.c
setup.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
signal32.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
signal32.h [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
signal.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
smp.c [PARISC] fix section mismatch in smp.c 2007-05-30 02:10:12 -04:00
sys32.h
sys_parisc32.c [PARISC] ROUND_UP macro cleanup in arch/parisc 2007-05-22 23:56:14 -04:00
sys_parisc.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
syscall_table.S [PARISC] Wire up utimensat/signalfd/timerfd/eventfd syscalls 2007-05-27 15:19:58 -04:00
syscall.S [PARISC] Fix bug when syscall nr is __NR_Linux_syscalls 2007-06-03 17:53:45 -04:00
time.c [PARISC] spelling fixes: arch/parisc/ 2007-05-22 22:52:16 -04:00
topology.c
traps.c generic bug: use show_regs() instead of dump_stack() 2007-07-16 09:05:51 -07:00
unaligned.c
unwind.c [PARISC] unwinder improvements 2007-06-21 17:46:22 -04:00
vmlinux.lds.S all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00