[RFC patch 03/41] LTTng core x86
From: Mathieu Desnoyers
Date: Thu Mar 05 2009 - 18:35:49 EST
Adds OOPS printing indication of nesting within tracer code.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: H. Peter Anvin <hpa@xxxxxxxxx>
---
arch/x86/kernel/dumpstack.c | 5 +++++
1 file changed, 5 insertions(+)
Index: linux-2.6-lttng/arch/x86/kernel/dumpstack.c
===================================================================
--- linux-2.6-lttng.orig/arch/x86/kernel/dumpstack.c 2009-01-30 10:06:43.000000000 -0500
+++ linux-2.6-lttng/arch/x86/kernel/dumpstack.c 2009-01-30 10:07:35.000000000 -0500
@@ -14,6 +14,7 @@
#include <linux/bug.h>
#include <linux/nmi.h>
#include <linux/sysfs.h>
+#include <linux/ltt-core.h>
#include <asm/stacktrace.h>
@@ -254,6 +255,10 @@ int __kprobes __die(const char *str, str
printk("DEBUG_PAGEALLOC");
#endif
printk("\n");
+#ifdef CONFIG_LTT
+ printk(KERN_EMERG "LTT NESTING LEVEL : %u", __get_cpu_var(ltt_nesting));
+ printk("\n");
+#endif
sysfs_printk_last_file();
if (notify_die(DIE_OOPS, str, regs, err,
current->thread.trap_no, SIGSEGV) == NOTIFY_STOP)
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/