lkml.org 
[lkml]   [2011]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC patch 13/32] trace event net remove semicolons
    Part of the gradual TRACE_EVENT() semicolon removal. Enables creation of array
    of events, thus saving space for trace event probes.

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Acked-by: Neil Horman <nhorman@tuxdriver.com>
    CC: Steven Rostedt <rostedt@goodmis.org>
    CC: Frederic Weisbecker <fweisbec@gmail.com>
    CC: Ingo Molnar <mingo@elte.hu>
    CC: Thomas Gleixner <tglx@linutronix.de>
    CC: David S. Miller <davem@davemloft.net>
    CC: Koki Sanagi <sanagi.koki@jp.fujitsu.com>
    ---
    include/trace/events/net.h | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    Index: linux-2.6-lttng/include/trace/events/net.h
    ===================================================================
    --- linux-2.6-lttng.orig/include/trace/events/net.h
    +++ linux-2.6-lttng/include/trace/events/net.h
    @@ -32,7 +32,7 @@ TRACE_EVENT(net_dev_xmit,

    TP_printk("dev=%s skbaddr=%p len=%u rc=%d",
    __get_str(name), __entry->skbaddr, __entry->len, __entry->rc)
    -);
    +)

    DECLARE_EVENT_CLASS(net_dev_template,

    @@ -61,21 +61,21 @@ DEFINE_EVENT(net_dev_template, net_dev_q
    TP_PROTO(struct sk_buff *skb),

    TP_ARGS(skb)
    -);
    +)

    DEFINE_EVENT(net_dev_template, netif_receive_skb,

    TP_PROTO(struct sk_buff *skb),

    TP_ARGS(skb)
    -);
    +)

    DEFINE_EVENT(net_dev_template, netif_rx,

    TP_PROTO(struct sk_buff *skb),

    TP_ARGS(skb)
    -);
    +)
    #endif /* _TRACE_NET_H */

    /* This part must be outside protection */


    \
     
     \ /
      Last update: 2011-05-04 01:19    [W:3.606 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site