X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fskb.h;h=a257304916c97f215ea188c14b70fce48bc273f4;hb=9cf29d3eaffa56199259919c90108de84724b4fb;hp=3163356c5b7cc2899cbfaf5978f10a4b7ebd4636;hpb=d3ac4d63d21c643df5b09d9d7888eb0c4122379c;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/skb.h b/instrumentation/events/lttng-module/skb.h index 3163356c..a2573049 100644 --- a/instrumentation/events/lttng-module/skb.h +++ b/instrumentation/events/lttng-module/skb.h @@ -7,11 +7,14 @@ #include #include #include +#include /* * Tracepoint for free an sk_buff: */ -TRACE_EVENT(kfree_skb, +TRACE_EVENT_MAP(kfree_skb, + + skb_kfree, TP_PROTO(struct sk_buff *skb, void *location), @@ -33,7 +36,10 @@ TRACE_EVENT(kfree_skb, __entry->skbaddr, __entry->protocol, __entry->location) ) -TRACE_EVENT(consume_skb, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) +TRACE_EVENT_MAP(consume_skb, + + skb_consume, TP_PROTO(struct sk_buff *skb), @@ -49,7 +55,9 @@ TRACE_EVENT(consume_skb, TP_printk("skbaddr=%p", __entry->skbaddr) ) +#endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) TRACE_EVENT(skb_copy_datagram_iovec, TP_PROTO(const struct sk_buff *skb, int len), @@ -68,6 +76,7 @@ TRACE_EVENT(skb_copy_datagram_iovec, TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len) ) +#endif #endif /* _TRACE_SKB_H */