lkml.org 
[lkml]   [2009]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] tracing: annotate emit_log_char() notrace
    printk calls emit_log_char() in a loop which is cluttering the trace
    buffer. Make it notrace.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    kernel/printk.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6-tip/kernel/printk.c
    ===================================================================
    --- linux-2.6-tip.orig/kernel/printk.c
    +++ linux-2.6-tip/kernel/printk.c
    @@ -499,7 +499,7 @@ static void call_console_drivers(unsigne
    _call_console_drivers(start_print, end, msg_level);
    }

    -static void emit_log_char(char c)
    +static void notrace emit_log_char(char c)
    {
    LOG_BUF(log_end) = c;
    log_end++;

    \
     
     \ /
      Last update: 2009-05-27 17:03    [W:0.046 / U:0.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site