aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2011-03-16 19:04:22 -0400
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2011-03-16 19:04:22 -0400
commit676f8b11d57da2b63a6ede33f0c9ecd9644ef5c1 (patch)
tree5538aed592c51f917f5251e2f253f0d16c9add2a /arch/powerpc
parent84ee25891ad85acd920109cc1c32eab1ffc68a60 (diff)
downloadlinux-2.6.38-lt-ux500-676f8b11d57da2b63a6ede33f0c9ecd9644ef5c1.tar.gz
lttng-core/lttng-core-powerpc
LTTng core powerpc Adds OOPS printing indication of nesting within tracer code. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/traps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index bd74fac169b..d002c253fc0 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -34,6 +34,7 @@
#include <linux/bug.h>
#include <linux/kdebug.h>
#include <linux/debugfs.h>
+#include <linux/ltt-core.h>
#include <asm/emulated_ops.h>
#include <asm/pgtable.h>
@@ -141,6 +142,10 @@ int die(const char *str, struct pt_regs *regs, long err)
#ifdef CONFIG_NUMA
printk("NUMA ");
#endif
+#ifdef CONFIG_LTT
+ printk("LTT NESTING LEVEL : %u ", __get_cpu_var(ltt_nesting));
+ printk("\n");
+#endif
printk("%s\n", ppc_md.name ? ppc_md.name : "");
sysfs_printk_last_file();