Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305410
b: refs/heads/master
c: 363f7ce
h: refs/heads/master
v: v3
  • Loading branch information
Shuah Khan authored and H. Peter Anvin committed May 15, 2012
1 parent 35e13ac commit 6e0e3c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5abe68e493e5aea1ccfc384092f8e98a542b336a
refs/heads/master: 363f7ce3250aafdaab43011c7dc40158ea571e6b
21 changes: 19 additions & 2 deletions trunk/arch/x86/kernel/dumpstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,16 +311,33 @@ void die(const char *str, struct pt_regs *regs, long err)

static int __init kstack_setup(char *s)
{
ssize_t ret;
unsigned long val;

if (!s)
return -EINVAL;
kstack_depth_to_print = simple_strtoul(s, NULL, 0);

ret = kstrtoul(s, 0, &val);
if (ret)
return ret;
kstack_depth_to_print = val;
return 0;
}
early_param("kstack", kstack_setup);

static int __init code_bytes_setup(char *s)
{
code_bytes = simple_strtoul(s, NULL, 0);
ssize_t ret;
unsigned long val;

if (!s)
return -EINVAL;

ret = kstrtoul(s, 0, &val);
if (ret)
return ret;

code_bytes = val;
if (code_bytes > 8192)
code_bytes = 8192;

Expand Down

0 comments on commit 6e0e3c0

Please sign in to comment.