Commit ec78b081 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: add an option to configure oops stack dump

Add an kstack= option to configure how much stack should be printed on a
oops.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f2a43f1a
...@@ -900,3 +900,11 @@ static int __init oops_dummy(char *s) ...@@ -900,3 +900,11 @@ static int __init oops_dummy(char *s)
return -1; return -1;
} }
__setup("oops=", oops_dummy); __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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment