aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/skb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/skb.h')
-rw-r--r--include/trace/events/skb.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/trace/events/skb.h b/include/trace/events/skb.h
index 4b2be6dc76f0..0c68ae22da22 100644
--- a/include/trace/events/skb.h
+++ b/include/trace/events/skb.h
@@ -19,22 +19,37 @@ TRACE_EVENT(kfree_skb,
19 19
20 TP_STRUCT__entry( 20 TP_STRUCT__entry(
21 __field( void *, skbaddr ) 21 __field( void *, skbaddr )
22 __field( unsigned short, protocol )
23 __field( void *, location ) 22 __field( void *, location )
23 __field( unsigned short, protocol )
24 ), 24 ),
25 25
26 TP_fast_assign( 26 TP_fast_assign(
27 __entry->skbaddr = skb; 27 __entry->skbaddr = skb;
28 if (skb) {
29 __entry->protocol = ntohs(skb->protocol);
30 }
31 __entry->location = location; 28 __entry->location = location;
29 __entry->protocol = ntohs(skb->protocol);
32 ), 30 ),
33 31
34 TP_printk("skbaddr=%p protocol=%u location=%p", 32 TP_printk("skbaddr=%p protocol=%u location=%p",
35 __entry->skbaddr, __entry->protocol, __entry->location) 33 __entry->skbaddr, __entry->protocol, __entry->location)
36); 34);
37 35
36TRACE_EVENT(consume_skb,
37
38 TP_PROTO(struct sk_buff *skb),
39
40 TP_ARGS(skb),
41
42 TP_STRUCT__entry(
43 __field( void *, skbaddr )
44 ),
45
46 TP_fast_assign(
47 __entry->skbaddr = skb;
48 ),
49
50 TP_printk("skbaddr=%p", __entry->skbaddr)
51);
52
38TRACE_EVENT(skb_copy_datagram_iovec, 53TRACE_EVENT(skb_copy_datagram_iovec,
39 54
40 TP_PROTO(const struct sk_buff *skb, int len), 55 TP_PROTO(const struct sk_buff *skb, int len),