dumpstack: i386: make kstack= an early boot-param and add oops=panic
- make kstack= and early_param - add oops=panic, setting panic_on_oops Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
ca0a816403
commit
802a67de0c
@@ -418,13 +418,24 @@ die_nmi(char *str, struct pt_regs *regs, int do_panic)
|
|||||||
do_exit(SIGSEGV);
|
do_exit(SIGSEGV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int __init oops_setup(char *s)
|
||||||
|
{
|
||||||
|
if (!s)
|
||||||
|
return -EINVAL;
|
||||||
|
if (!strcmp(s, "panic"))
|
||||||
|
panic_on_oops = 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
early_param("oops", oops_setup);
|
||||||
|
|
||||||
static int __init kstack_setup(char *s)
|
static int __init kstack_setup(char *s)
|
||||||
{
|
{
|
||||||
|
if (!s)
|
||||||
|
return -EINVAL;
|
||||||
kstack_depth_to_print = simple_strtoul(s, NULL, 0);
|
kstack_depth_to_print = simple_strtoul(s, NULL, 0);
|
||||||
|
return 0;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
__setup("kstack=", kstack_setup);
|
early_param("kstack", kstack_setup);
|
||||||
|
|
||||||
static int __init code_bytes_setup(char *s)
|
static int __init code_bytes_setup(char *s)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user