2 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
3 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
8 * a) Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
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.
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.
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.
32 #include <sys/cdefs.h>
33 __FBSDID("$FreeBSD$");
35 #ifndef _NETINET_SCTP_DTRACE_DEFINE_H_
36 #define _NETINET_SCTP_DTRACE_DEFINE_H_
38 #include <sys/kernel.h>
41 SDT_PROVIDER_DEFINE(sctp);
43 /********************************************************/
44 /* Cwnd probe - tracks changes in the congestion window on a netp */
45 /********************************************************/
47 SDT_PROBE_DEFINE5(sctp, cwnd, net, init,
48 "uint32_t", /* The Vtag for this end */
50 * The port number of the local side << 16 | port number
51 * of remote in network byte order.
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 */
58 SDT_PROBE_DEFINE5(sctp, cwnd, net, ack,
59 "uint32_t", /* The Vtag for this end */
61 * The port number of the local side << 16 | port number
62 * of remote in network byte order.
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 */
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) */
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) */
83 /* FastRetransmit-DECREASE */
84 SDT_PROBE_DEFINE5(sctp, cwnd, net, fr,
85 "uint32_t", /* The Vtag for this end */
87 * The port number of the local side << 16 | port number
88 * of remote in network byte order.
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 */
94 /* TimeOut-DECREASE */
95 SDT_PROBE_DEFINE5(sctp, cwnd, net, to,
96 "uint32_t", /* The Vtag for this end */
98 * The port number of the local side << 16 | port number
99 * of remote in network byte order.
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 */
105 /* BurstLimit-DECREASE */
106 SDT_PROBE_DEFINE5(sctp, cwnd, net, bl,
107 "uint32_t", /* The Vtag for this end */
109 * The port number of the local side << 16 | port number
110 * of remote in network byte order.
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 */
117 SDT_PROBE_DEFINE5(sctp, cwnd, net, ecn,
118 "uint32_t", /* The Vtag for this end */
120 * The port number of the local side << 16 | port number
121 * of remote in network byte order.
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 */
127 /* PacketDrop-DECREASE */
128 SDT_PROBE_DEFINE5(sctp, cwnd, net, pd,
129 "uint32_t", /* The Vtag for this end */
131 * The port number of the local side << 16 | port number
132 * of remote in network byte order.
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 */
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 */
144 * The port number of the local side << 16 | port number
145 * of remote in network byte order.
147 "int", /* The up/down amount */
148 "int"); /* The new value of the cwnd */
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 */
156 * The port number of the local side << 16 | port number
157 * of remote in network byte order.
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 */
163 /********************************************************/
164 /* The total flight version */
165 /********************************************************/
166 SDT_PROBE_DEFINE4(sctp, flightsize, assoc, val,
167 "uint32_t", /* The Vtag for this end */
169 * The port number of the local side << 16 | port number
170 * of remote in network byte order.
172 "int", /* The up/down amount */
173 "int"); /* The new value of the cwnd */