]> git.hungrycats.org Git - linux/commitdiff
[PATCH] x86_64: add an option to configure oops stack dump
authorAndi Kleen <ak@muc.de>
Wed, 20 Oct 2004 01:11:53 +0000 (18:11 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:11:53 +0000 (18:11 -0700)
Add an kstack= option to configure how much stack should be printed on a
oops.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/traps.c

index c0a31a4add9e4389cda6bbf25f74c09b8d54a49a..5db14e9c813d49bf4268a4d39bcf43fc94ce41c2 100644 (file)
@@ -900,3 +900,11 @@ static int __init oops_dummy(char *s)
        return -1; 
 } 
 __setup("oops=", oops_dummy); 
+
+static int __init kstack_setup(char *s)
+{
+       kstack_depth_to_print = simple_strtoul(s,NULL,0);
+       return 0;
+}
+__setup("kstack=", kstack_setup);
+