Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
skb.h
Go to the documentation of this file.
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM skb
3 
4 #if !defined(_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_SKB_H
6 
7 #include <linux/skbuff.h>
8 #include <linux/netdevice.h>
9 #include <linux/tracepoint.h>
10 
11 /*
12  * Tracepoint for free an sk_buff:
13  */
15 
16  TP_PROTO(struct sk_buff *skb, void *location),
17 
18  TP_ARGS(skb, location),
19 
21  __field( void *, skbaddr )
22  __field( void *, location )
23  __field( unsigned short, protocol )
24  ),
25 
27  __entry->skbaddr = skb;
28  __entry->location = location;
29  __entry->protocol = ntohs(skb->protocol);
30  ),
31 
32  TP_printk("skbaddr=%p protocol=%u location=%p",
33  __entry->skbaddr, __entry->protocol, __entry->location)
34 );
35 
37 
38  TP_PROTO(struct sk_buff *skb),
39 
40  TP_ARGS(skb),
41 
43  __field( void *, skbaddr )
44  ),
45 
47  __entry->skbaddr = skb;
48  ),
49 
50  TP_printk("skbaddr=%p", __entry->skbaddr)
51 );
52 
54 
55  TP_PROTO(const struct sk_buff *skb, int len),
56 
57  TP_ARGS(skb, len),
58 
60  __field( const void *, skbaddr )
61  __field( int, len )
62  ),
63 
65  __entry->skbaddr = skb;
66  __entry->len = len;
67  ),
68 
69  TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len)
70 );
71 
72 #endif /* _TRACE_SKB_H */
73 
74 /* This part must be outside protection */
75 #include <trace/define_trace.h>