OMAP3: PM: Implement locking for any scratchpad access
[linux-ginger.git] / include / trace / events / skb.h
blob4b2be6dc76f091647eb30f30a40a49218def8682
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM skb
4 #if !defined(_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_SKB_H
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),
20 TP_STRUCT__entry(
21 __field( void *, skbaddr )
22 __field( unsigned short, protocol )
23 __field( void *, location )
26 TP_fast_assign(
27 __entry->skbaddr = skb;
28 if (skb) {
29 __entry->protocol = ntohs(skb->protocol);
31 __entry->location = location;
34 TP_printk("skbaddr=%p protocol=%u location=%p",
35 __entry->skbaddr, __entry->protocol, __entry->location)
38 TRACE_EVENT(skb_copy_datagram_iovec,
40 TP_PROTO(const struct sk_buff *skb, int len),
42 TP_ARGS(skb, len),
44 TP_STRUCT__entry(
45 __field( const void *, skbaddr )
46 __field( int, len )
49 TP_fast_assign(
50 __entry->skbaddr = skb;
51 __entry->len = len;
54 TP_printk("skbaddr=%p len=%d", __entry->skbaddr, __entry->len)
57 #endif /* _TRACE_SKB_H */
59 /* This part must be outside protection */
60 #include <trace/define_trace.h>