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 03/41] LTTng core x86
    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)
    --
    Mathieu Desnoyers
    OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


    \
     
     \ /
      Last update: 2009-03-06 00:39    [W:0.048 / U:60.384 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site