lkml.org 
[lkml]   [2008]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 08/17] LTTng instrumentation - kernel


    On Tue, 15 Jul 2008, Mathieu Desnoyers wrote:
    >
    > /*
    > * Low level drivers may need that to know if they can schedule in
    > @@ -601,6 +603,7 @@ asmlinkage int printk(const char *fmt, .
    > int r;
    >
    > va_start(args, fmt);
    > + trace_kernel_printk(__builtin_return_address(0));

    BTW, ftrace.h has macros that let you use CALLER_ADDR0 for
    __builtin_return_address. It also converts it from a pointer to a long,
    but makes the code look prettier.


    > r = vprintk(fmt, args);
    > va_end(args);
    >
    > @@ -677,6 +680,9 @@ asmlinkage int vprintk(const char *fmt,
    > raw_local_irq_save(flags);
    > this_cpu = smp_processor_id();
    >
    > + trace_kernel_vprintk(__builtin_return_address(0),
    > + printk_buf, printed_len);
    > +
    > /*
    > * Ouch, printk recursed into itself!
    > */

    -- Steve



    \
     
     \ /
      Last update: 2008-07-24 16:01    [W:2.195 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site