lkml.org 
[lkml]   [2009]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 08/16] tracing: have event_trace_printk use static tracer
    Date
    > +#define event_trace_printk(ip, fmt, args...)				\
    > +do { \
    > + __trace_printk_check_format(fmt, ##args); \
    > + tracing_record_cmdline(current); \
    > + if (__builtin_constant_p(fmt)) { \
    > + static const char *trace_printk_fmt \
    > + __attribute__((section("__trace_printk_fmt"))) = \
    > + __builtin_constant_p(fmt) ? fmt : NULL; \

    Why __builtin_constant_p(fmt) evaluate twice?


    > + \
    > + __trace_bprintk(ip, trace_printk_fmt, ##args); \
    > + } else \
    > + __trace_printk(ip, fmt, ##args); \
    > +} while (0)




    \
     
     \ /
      Last update: 2009-03-13 04:13    [W:2.906 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site