X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fskb.h;h=c8a616067e63136cb2ba40a7ff927832733fd6c3;hb=7c68b363332170e4db100327ecc9e09b8a79cf29;hp=3163356c5b7cc2899cbfaf5978f10a4b7ebd4636;hpb=83788d81815146024200cba5aa46c705a05d6b99;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/skb.h b/instrumentation/events/lttng-module/skb.h index 3163356c..c8a61606 100644 --- a/instrumentation/events/lttng-module/skb.h +++ b/instrumentation/events/lttng-module/skb.h @@ -7,6 +7,7 @@ #include #include #include +#include /* * Tracepoint for free an sk_buff: @@ -33,6 +34,7 @@ TRACE_EVENT(kfree_skb, __entry->skbaddr, __entry->protocol, __entry->location) ) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) TRACE_EVENT(consume_skb, TP_PROTO(struct sk_buff *skb), @@ -49,7 +51,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 +72,7 @@ TRACE_EVENT(skb_copy_datagram_iovec, TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len) ) +#endif #endif /* _TRACE_SKB_H */