]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/netinet/sctp_dtrace_define.h
Merge ACPICA 20150717.
[FreeBSD/FreeBSD.git] / sys / netinet / sctp_dtrace_define.h
1 /*-
2  * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
3  * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * a) Redistributions of source code must retain the above copyright notice,
9  *    this list of conditions and the following disclaimer.
10  *
11  * b) Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in
13  *    the documentation and/or other materials provided with the distribution.
14  *
15  * c) Neither the name of Cisco Systems, Inc. nor the names of its
16  *    contributors may be used to endorse or promote products derived
17  *    from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29  * THE POSSIBILITY OF SUCH DAMAGE.
30  */
31
32 #include <sys/cdefs.h>
33 __FBSDID("$FreeBSD$");
34
35 #ifndef _NETINET_SCTP_DTRACE_DEFINE_H_
36 #define _NETINET_SCTP_DTRACE_DEFINE_H_
37
38 #include <sys/kernel.h>
39 #include <sys/sdt.h>
40
41 SDT_PROVIDER_DEFINE(sctp);
42
43 /********************************************************/
44 /* Cwnd probe - tracks changes in the congestion window on a netp */
45 /********************************************************/
46 /* Initial */
47 SDT_PROBE_DEFINE5(sctp, cwnd, net, init,
48     "uint32_t",         /* The Vtag for this end */
49     "uint32_t",         /*
50                          * The port number of the local side << 16 | port number
51                          * of remote in network byte order.
52                          */
53     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
54     "int",              /* The old value of the cwnd */
55     "int");             /* The new value of the cwnd */
56
57 /* ACK-INCREASE */
58 SDT_PROBE_DEFINE5(sctp, cwnd, net, ack,
59     "uint32_t",         /* The Vtag for this end */
60     "uint32_t",         /*
61                          * The port number of the local side << 16 | port number
62                          * of remote in network byte order.
63                          */
64     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
65     "int",              /* The old value of the cwnd */
66     "int");             /* The new value of the cwnd */
67
68 /* ACK-INCREASE */
69 SDT_PROBE_DEFINE5(sctp, cwnd, net, rttvar,
70     "uint64_t",         /* The Vtag << 32 | localport << 16 | remoteport */
71     "uint64_t",         /* obw | nbw */
72     "uint64_t",         /* bwrtt | newrtt */
73     "uint64_t",         /* flight */
74     "uint64_t");        /* (cwnd << 32) | point << 16 | retval(0/1) */
75
76 SDT_PROBE_DEFINE5(sctp, cwnd, net, rttstep,
77     "uint64_t",         /* The Vtag << 32 | localport << 16 | remoteport */
78     "uint64_t",         /* obw | nbw */
79     "uint64_t",         /* bwrtt | newrtt */
80     "uint64_t",         /* flight */
81     "uint64_t");        /* (cwnd << 32) | point << 16 | retval(0/1) */
82
83 /* FastRetransmit-DECREASE */
84 SDT_PROBE_DEFINE5(sctp, cwnd, net, fr,
85     "uint32_t",         /* The Vtag for this end */
86     "uint32_t",         /*
87                          * The port number of the local side << 16 | port number
88                          * of remote in network byte order.
89                          */
90     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
91     "int",              /* The old value of the cwnd */
92     "int");             /* The new value of the cwnd */
93
94 /* TimeOut-DECREASE */
95 SDT_PROBE_DEFINE5(sctp, cwnd, net, to,
96     "uint32_t",         /* The Vtag for this end */
97     "uint32_t",         /*
98                          * The port number of the local side << 16 | port number
99                          * of remote in network byte order.
100                          */
101     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
102     "int",              /* The old value of the cwnd */
103     "int");             /* The new value of the cwnd */
104
105 /* BurstLimit-DECREASE */
106 SDT_PROBE_DEFINE5(sctp, cwnd, net, bl,
107     "uint32_t",         /* The Vtag for this end */
108     "uint32_t",         /*
109                          * The port number of the local side << 16 | port number
110                          * of remote in network byte order.
111                          */
112     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
113     "int",              /* The old value of the cwnd */
114     "int");             /* The new value of the cwnd */
115
116 /* ECN-DECREASE */
117 SDT_PROBE_DEFINE5(sctp, cwnd, net, ecn,
118     "uint32_t",         /* The Vtag for this end */
119     "uint32_t",         /*
120                          * The port number of the local side << 16 | port number
121                          * of remote in network byte order.
122                          */
123     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
124     "int",              /* The old value of the cwnd */
125     "int");             /* The new value of the cwnd */
126
127 /* PacketDrop-DECREASE */
128 SDT_PROBE_DEFINE5(sctp, cwnd, net, pd,
129     "uint32_t",         /* The Vtag for this end */
130     "uint32_t",         /*
131                          * The port number of the local side << 16 | port number
132                          * of remote in network byte order.
133                          */
134     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
135     "int",              /* The old value of the cwnd */
136     "int");             /* The new value of the cwnd */
137
138 /********************************************************/
139 /* Rwnd probe - tracks changes in the receiver window for an assoc */
140 /********************************************************/
141 SDT_PROBE_DEFINE4(sctp, rwnd, assoc, val,
142     "uint32_t",         /* The Vtag for this end */
143     "uint32_t",         /*
144                          * The port number of the local side << 16 | port number
145                          * of remote in network byte order.
146                          */
147     "int",              /* The up/down amount */
148     "int");             /* The new value of the cwnd */
149
150 /********************************************************/
151 /* flight probe - tracks changes in the flight size on a net or assoc */
152 /********************************************************/
153 SDT_PROBE_DEFINE5(sctp, flightsize, net, val,
154     "uint32_t",         /* The Vtag for this end */
155     "uint32_t",         /*
156                          * The port number of the local side << 16 | port number
157                          * of remote in network byte order.
158                          */
159     "uintptr_t",        /* The pointer to the struct sctp_nets * changing */
160     "int",              /* The up/down amount */
161     "int");             /* The new value of the cwnd */
162
163 /********************************************************/
164 /* The total flight version */
165 /********************************************************/
166 SDT_PROBE_DEFINE4(sctp, flightsize, assoc, val,
167     "uint32_t",         /* The Vtag for this end */
168     "uint32_t",         /*
169                          * The port number of the local side << 16 | port number
170                          * of remote in network byte order.
171                          */
172     "int",              /* The up/down amount */
173     "int");             /* The new value of the cwnd */
174
175 #endif