2 #define TRACE_SYSTEM skb
4 #if !defined(_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/skbuff.h>
8 #include <linux/netdevice.h>
9 #include <linux/tracepoint.h>
12 * Tracepoint for free an sk_buff:
14 TRACE_EVENT(kfree_skb
,
16 TP_PROTO(struct sk_buff
*skb
, void *location
),
18 TP_ARGS(skb
, location
),
21 __field( void *, skbaddr
)
22 __field( void *, location
)
23 __field( unsigned short, protocol
)
27 __entry
->skbaddr
= skb
;
28 __entry
->location
= location
;
29 __entry
->protocol
= ntohs(skb
->protocol
);
32 TP_printk("skbaddr=%p protocol=%u location=%p",
33 __entry
->skbaddr
, __entry
->protocol
, __entry
->location
)
36 TRACE_EVENT(consume_skb
,
38 TP_PROTO(struct sk_buff
*skb
),
43 __field( void *, skbaddr
)
47 __entry
->skbaddr
= skb
;
50 TP_printk("skbaddr=%p", __entry
->skbaddr
)
53 TRACE_EVENT(skb_copy_datagram_iovec
,
55 TP_PROTO(const struct sk_buff
*skb
, int len
),
60 __field( const void *, skbaddr
)
65 __entry
->skbaddr
= skb
;
69 TP_printk("skbaddr=%p len=%d", __entry
->skbaddr
, __entry
->len
)
72 #endif /* _TRACE_SKB_H */
74 /* This part must be outside protection */
75 #include <trace/define_trace.h>
This page took 0.029683 seconds and 4 git commands to generate.