]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] kdump: Save trap information for later analysis
authorAlexander Nyberg <alexn@telia.com>
Sat, 25 Jun 2005 21:58:27 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:55 +0000 (16:24 -0700)
commit4f339ecb30c759f94a29992d4635d9194132b6cf
tree9a1438b35d87a1d3a3359c273a39ac4895578e1c
parent6e274d144302068a00794ec22e73520c0615cb6f
[PATCH] kdump: Save trap information for later analysis

If we are faulting in kernel it is quite possible this will lead to a
panic.  Save trap number, cr2 (in case of page fault) and error_code in the
current thread (these fields already exist for signal delivery but are not
used here).

This helps later kdump crash analyzing from user-space (a script has been
submitted to dig this info out in gdb).

Signed-off-by: Alexander Nyberg <alexn@telia.com>
Cc: <fastboot@lists.osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c
arch/i386/mm/fault.c