Adds OOPS printing indication of nesting within tracer code. Signed-off-by: Mathieu Desnoyers CC: Thomas Gleixner CC: Ingo Molnar CC: H. Peter Anvin --- 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 #include #include +#include #include @@ -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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/