aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-19 13:05:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-19 13:05:34 -0400
commit1200b6809dfd9d73bc4c7db76d288c35fa4b2ebe (patch)
tree552e03de245cdbd0780ca1215914edc4a26540f7 /include/trace
parent6b5f04b6cf8ebab9a65d9c0026c650bb2538fd0f (diff)
parentfe30937b65354c7fec244caebbdaae68e28ca797 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: "Highlights: 1) Support more Realtek wireless chips, from Jes Sorenson. 2) New BPF types for per-cpu hash and arrap maps, from Alexei Starovoitov. 3) Make several TCP sysctls per-namespace, from Nikolay Borisov. 4) Allow the use of SO_REUSEPORT in order to do per-thread processing of incoming TCP/UDP connections. The muxing can be done using a BPF program which hashes the incoming packet. From Craig Gallek. 5) Add a multiplexer for TCP streams, to provide a messaged based interface. BPF programs can be used to determine the message boundaries. From Tom Herbert. 6) Add 802.1AE MACSEC support, from Sabrina Dubroca. 7) Avoid factorial complexity when taking down an inetdev interface with lots of configured addresses. We were doing things like traversing the entire address less for each address removed, and flushing the entire netfilter conntrack table for every address as well. 8) Add and use SKB bulk free infrastructure, from Jesper Brouer. 9) Allow offloading u32 classifiers to hardware, and implement for ixgbe, from John Fastabend. 10) Allow configuring IRQ coalescing parameters on a per-queue basis, from Kan Liang. 11) Extend ethtool so that larger link mode masks can be supported. From David Decotigny. 12) Introduce devlink, which can be used to configure port link types (ethernet vs Infiniband, etc.), port splitting, and switch device level attributes as a whole. From Jiri Pirko. 13) Hardware offload support for flower classifiers, from Amir Vadai. 14) Add "Local Checksum Offload". Basically, for a tunneled packet the checksum of the outer header is 'constant' (because with the checksum field filled into the inner protocol header, the payload of the outer frame checksums to 'zero'), and we can take advantage of that in various ways. From Edward Cree" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1548 commits) bonding: fix bond_get_stats() net: bcmgenet: fix dma api length mismatch net/mlx4_core: Fix backward compatibility on VFs phy: mdio-thunder: Fix some Kconfig typos lan78xx: add ndo_get_stats64 lan78xx: handle statistics counter rollover RDS: TCP: Remove unused constant RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket net: smc911x: convert pxa dma to dmaengine team: remove duplicate set of flag IFF_MULTICAST bonding: remove duplicate set of flag IFF_MULTICAST net: fix a comment typo ethernet: micrel: fix some error codes ip_tunnels, bpf: define IP_TUNNEL_OPTS_MAX and use it bpf, dst: add and use dst_tclassid helper bpf: make skb->tc_classid also readable net: mvneta: bm: clarify dependencies cls_bpf: reset class and reuse major in da ldmvsw: Checkpatch sunvnet.c and sunvnet_common.c ldmvsw: Add ldmvsw.c driver code ...
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/sunvnet.h139
1 files changed, 139 insertions, 0 deletions
diff --git a/include/trace/events/sunvnet.h b/include/trace/events/sunvnet.h
new file mode 100644
index 000000000000..eb080b267e55
--- /dev/null
+++ b/include/trace/events/sunvnet.h
@@ -0,0 +1,139 @@
1#undef TRACE_SYSTEM
2#define TRACE_SYSTEM sunvnet
3
4#if !defined(_TRACE_SUNVNET_H) || defined(TRACE_HEADER_MULTI_READ)
5#define _TRACE_SUNVNET_H
6
7#include <linux/tracepoint.h>
8
9TRACE_EVENT(vnet_rx_one,
10
11 TP_PROTO(int lsid, int rsid, int index, int needs_ack),
12
13 TP_ARGS(lsid, rsid, index, needs_ack),
14
15 TP_STRUCT__entry(
16 __field(int, lsid)
17 __field(int, rsid)
18 __field(int, index)
19 __field(int, needs_ack)
20 ),
21
22 TP_fast_assign(
23 __entry->lsid = lsid;
24 __entry->rsid = rsid;
25 __entry->index = index;
26 __entry->needs_ack = needs_ack;
27 ),
28
29 TP_printk("(%x:%x) walk_rx_one index %d; needs_ack %d",
30 __entry->lsid, __entry->rsid,
31 __entry->index, __entry->needs_ack)
32);
33
34DECLARE_EVENT_CLASS(vnet_tx_stopped_ack_template,
35
36 TP_PROTO(int lsid, int rsid, int ack_end, int npkts),
37
38 TP_ARGS(lsid, rsid, ack_end, npkts),
39
40 TP_STRUCT__entry(
41 __field(int, lsid)
42 __field(int, rsid)
43 __field(int, ack_end)
44 __field(int, npkts)
45 ),
46
47 TP_fast_assign(
48 __entry->lsid = lsid;
49 __entry->rsid = rsid;
50 __entry->ack_end = ack_end;
51 __entry->npkts = npkts;
52 ),
53
54 TP_printk("(%x:%x) stopped ack for %d; npkts %d",
55 __entry->lsid, __entry->rsid,
56 __entry->ack_end, __entry->npkts)
57);
58DEFINE_EVENT(vnet_tx_stopped_ack_template, vnet_tx_send_stopped_ack,
59 TP_PROTO(int lsid, int rsid, int ack_end, int npkts),
60 TP_ARGS(lsid, rsid, ack_end, npkts));
61DEFINE_EVENT(vnet_tx_stopped_ack_template, vnet_tx_defer_stopped_ack,
62 TP_PROTO(int lsid, int rsid, int ack_end, int npkts),
63 TP_ARGS(lsid, rsid, ack_end, npkts));
64DEFINE_EVENT(vnet_tx_stopped_ack_template, vnet_tx_pending_stopped_ack,
65 TP_PROTO(int lsid, int rsid, int ack_end, int npkts),
66 TP_ARGS(lsid, rsid, ack_end, npkts));
67
68TRACE_EVENT(vnet_rx_stopped_ack,
69
70 TP_PROTO(int lsid, int rsid, int end),
71
72 TP_ARGS(lsid, rsid, end),
73
74 TP_STRUCT__entry(
75 __field(int, lsid)
76 __field(int, rsid)
77 __field(int, end)
78 ),
79
80 TP_fast_assign(
81 __entry->lsid = lsid;
82 __entry->rsid = rsid;
83 __entry->end = end;
84 ),
85
86 TP_printk("(%x:%x) stopped ack for index %d",
87 __entry->lsid, __entry->rsid, __entry->end)
88);
89
90TRACE_EVENT(vnet_tx_trigger,
91
92 TP_PROTO(int lsid, int rsid, int start, int err),
93
94 TP_ARGS(lsid, rsid, start, err),
95
96 TP_STRUCT__entry(
97 __field(int, lsid)
98 __field(int, rsid)
99 __field(int, start)
100 __field(int, err)
101 ),
102
103 TP_fast_assign(
104 __entry->lsid = lsid;
105 __entry->rsid = rsid;
106 __entry->start = start;
107 __entry->err = err;
108 ),
109
110 TP_printk("(%x:%x) Tx trigger for %d sent with err %d %s",
111 __entry->lsid, __entry->rsid, __entry->start,
112 __entry->err, __entry->err > 0 ? "(ok)" : " ")
113);
114
115TRACE_EVENT(vnet_skip_tx_trigger,
116
117 TP_PROTO(int lsid, int rsid, int last),
118
119 TP_ARGS(lsid, rsid, last),
120
121 TP_STRUCT__entry(
122 __field(int, lsid)
123 __field(int, rsid)
124 __field(int, last)
125 ),
126
127 TP_fast_assign(
128 __entry->lsid = lsid;
129 __entry->rsid = rsid;
130 __entry->last = last;
131 ),
132
133 TP_printk("(%x:%x) Skip Tx trigger. Last trigger sent was %d",
134 __entry->lsid, __entry->rsid, __entry->last)
135);
136#endif /* _TRACE_SOCK_H */
137
138/* This part must be outside protection */
139#include <trace/define_trace.h>