ARM: perf: use integers for ARMv7 event indices
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / trace / events / net.h
blobf99645d05a8f201eea78a399468e51b3876d2019
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM net
4 #if !defined(_TRACE_NET_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_NET_H
7 #include <linux/skbuff.h>
8 #include <linux/netdevice.h>
9 #include <linux/ip.h>
10 #include <linux/tracepoint.h>
12 TRACE_EVENT(net_dev_xmit,
14 TP_PROTO(struct sk_buff *skb,
15 int rc,
16 struct net_device *dev,
17 unsigned int skb_len),
19 TP_ARGS(skb, rc, dev, skb_len),
21 TP_STRUCT__entry(
22 __field( void *, skbaddr )
23 __field( unsigned int, len )
24 __field( int, rc )
25 __string( name, dev->name )
28 TP_fast_assign(
29 __entry->skbaddr = skb;
30 __entry->len = skb_len;
31 __entry->rc = rc;
32 __assign_str(name, dev->name);
35 TP_printk("dev=%s skbaddr=%p len=%u rc=%d",
36 __get_str(name), __entry->skbaddr, __entry->len, __entry->rc)
39 DECLARE_EVENT_CLASS(net_dev_template,
41 TP_PROTO(struct sk_buff *skb),
43 TP_ARGS(skb),
45 TP_STRUCT__entry(
46 __field( void *, skbaddr )
47 __field( unsigned int, len )
48 __string( name, skb->dev->name )
51 TP_fast_assign(
52 __entry->skbaddr = skb;
53 __entry->len = skb->len;
54 __assign_str(name, skb->dev->name);
57 TP_printk("dev=%s skbaddr=%p len=%u",
58 __get_str(name), __entry->skbaddr, __entry->len)
61 DEFINE_EVENT(net_dev_template, net_dev_queue,
63 TP_PROTO(struct sk_buff *skb),
65 TP_ARGS(skb)
68 DEFINE_EVENT(net_dev_template, netif_receive_skb,
70 TP_PROTO(struct sk_buff *skb),
72 TP_ARGS(skb)
75 DEFINE_EVENT(net_dev_template, netif_rx,
77 TP_PROTO(struct sk_buff *skb),
79 TP_ARGS(skb)
81 #endif /* _TRACE_NET_H */
83 /* This part must be outside protection */
84 #include <trace/define_trace.h>