2 #define TRACE_SYSTEM skb
4 #if !defined(LTTNG_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_SKB_H
7 #include "../../../probes/lttng-tracepoint-event.h"
8 #include <linux/skbuff.h>
9 #include <linux/netdevice.h>
10 #include <linux/version.h>
13 * Tracepoint for free an sk_buff:
15 LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb
,
19 TP_PROTO(struct sk_buff
*skb
, void *location
),
21 TP_ARGS(skb
, location
),
24 __field( void *, skbaddr
)
25 __field( void *, location
)
26 __field( unsigned short, protocol
)
30 tp_assign(skbaddr
, skb
)
31 tp_assign(location
, location
)
32 tp_assign(protocol
, ntohs(skb
->protocol
))
35 TP_printk("skbaddr=%p protocol=%u location=%p",
36 __entry
->skbaddr
, __entry
->protocol
, __entry
->location
)
39 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
40 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb
,
44 TP_PROTO(struct sk_buff
*skb
),
49 __field( void *, skbaddr
)
53 tp_assign(skbaddr
, skb
)
56 TP_printk("skbaddr=%p", __entry
->skbaddr
)
60 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
61 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec
,
63 TP_PROTO(const struct sk_buff
*skb
, int len
),
68 __field( const void *, skbaddr
)
73 tp_assign(skbaddr
, skb
)
77 TP_printk("skbaddr=%p len=%d", __entry
->skbaddr
, __entry
->len
)
81 #endif /* LTTNG_TRACE_SKB_H */
83 /* This part must be outside protection */
84 #include "../../../probes/define_trace.h"
This page took 0.029938 seconds and 4 git commands to generate.