Skip to contentSkip to conversation

x86_64: add an option to configure oops stack dump

PATCH Randy.Dunlap 1 participant 1 message Oct 21, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 21 lines · Linux Kernel Mailing List

ChangeSet 1.2016, 2004/10/20 08:11:53-07:00, [email protected]

[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.

 traps.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -Nru a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c

arch/x86_64/kernel/traps.c line 909

Quoted 10 lines
arch/x86_64/kernel/traps.c +7 -0
@@ -900,3 +900,11 @@
 	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);

I'm happy to see this, but I don't see why it's arch-specific...

Signature · 1 line
~Randy