[RFC patch 03/41] LTTng core x86

Mathieu Desnoyers
2009-03-05T23:35:49Z

[-- Attachment #1: lttng-core-x86.patch --]
[-- Type: text/plain, Size: 1220 bytes --]

Adds OOPS printing indication of nesting within tracer code.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Ingo Molnar <mingo@redhat.com>
CC: H. Peter Anvin <hpa@zytor.com>
---
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)