lkml.org 
[lkml]   [2009]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC patch 04/41] LTTng core powerpc
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();
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


\
 
 \ /
  Last update: 2009-03-06 00:25    [from the cache]
©2003-2011 Jasper Spaans