[RFC patch 04/41] LTTng core powerpc

Mathieu Desnoyers
2009-03-05T23:22:37Z

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

Adds OOPS printing indication of nesting within tracer code.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
---
arch/powerpc/kernel/traps.c | 5 +++++
1 file changed, 5 insertions(+)

Index: linux-2.6-lttng/arch/powerpc/kernel/traps.c
===================================================================
--- linux-2.6-lttng.orig/arch/powerpc/kernel/traps.c 2009-01-09 18:16:47.000000000 -0500
+++ linux-2.6-lttng/arch/powerpc/kernel/traps.c 2009-01-09 18:17:23.000000000 -0500
@@ -33,6 +33,7 @@
#include <linux/backlight.h>
#include <linux/bug.h>
#include <linux/kdebug.h>
+#include <linux/ltt-core.h>

#include <asm/pgtable.h>
#include <asm/uaccess.h>
@@ -138,6 +139,10 @@ int die(const char *str, struct pt_regs
#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 : "");

print_modules();