diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2006-01-09 23:51:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:28 -0500 |
commit | ec9ce0dbaa734bc95ec73cf5c13f202f1adb219d (patch) | |
tree | 26d799567fe0325ae918e4f0bffa5080a03faeff /arch/x86_64/Kconfig | |
parent | cffe632a25b017dac4b6f060cad31940c6c167b4 (diff) |
[PATCH] kdump: x86_64 save cpu registers upon crash
- Saving the cpu registers of all cpus before booting in to the crash
kernel.
- crash_setup_regs will save the registers of the cpu on which panic has
occured. One of the concerns ppc64 folks raised is that after capturing the
register states, one should not pop the current call frame and push new one.
Hence it has been inlined. More call frames later get pushed on to stack
(machine_crash_shutdown() and machine_kexec()), but one will not want to
backtrace those.
- Not very sure about the CFI annotations. With this patch I am getting
decent backtrace with gdb. Assuming, compiler has generated enough
debugging information for crash_kexec(). Coding crash_setup_regs() in pure
assembly makes it tricky because then it can not be inlined and we don't
want to return back after capturing register states we don't want to pop
this call frame.
- Saving the non-panicing cpus registers will be done in the NMI handler
while shooting down them in machine_crash_shutdown.
- Introducing CRASH_DUMP option in Kconfig for x86_64.
Signed-off-by: Murali M Chakravarthy <muralim@in.ibm.com>
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Cc: Andi Kleen <ak@muc.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/Kconfig')
-rw-r--r-- | arch/x86_64/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig index 4f3e925962c3..dd2d116b9ab8 100644 --- a/arch/x86_64/Kconfig +++ b/arch/x86_64/Kconfig | |||
@@ -427,6 +427,13 @@ config KEXEC | |||
427 | support. As of this writing the exact hardware interface is | 427 | support. As of this writing the exact hardware interface is |
428 | strongly in flux, so no good recommendation can be made. | 428 | strongly in flux, so no good recommendation can be made. |
429 | 429 | ||
430 | config CRASH_DUMP | ||
431 | bool "kernel crash dumps (EXPERIMENTAL)" | ||
432 | depends on EMBEDDED | ||
433 | depends on EXPERIMENTAL | ||
434 | help | ||
435 | Generate crash dump after being started by kexec. | ||
436 | |||
430 | config SECCOMP | 437 | config SECCOMP |
431 | bool "Enable seccomp to safely compute untrusted bytecode" | 438 | bool "Enable seccomp to safely compute untrusted bytecode" |
432 | depends on PROC_FS | 439 | depends on PROC_FS |