+/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM skb
#include <probes/lttng-tracepoint-event.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
-#include <linux/version.h>
+#include <lttng-kernel-version.h>
/*
* Tracepoint for free an sk_buff:
)
)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
skb_consume,
ctf_integer_hex(void *, skbaddr, skb)
)
)
-#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec,
TP_PROTO(const struct sk_buff *skb, int len),
ctf_integer(int, len, len)
)
)
-#endif
#endif /* LTTNG_TRACE_SKB_H */