1215817Srrs/*-
2235828Stuexen * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
3235828Stuexen * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
4215817Srrs *
5215817Srrs * Redistribution and use in source and binary forms, with or without
6215817Srrs * modification, are permitted provided that the following conditions are met:
7215817Srrs *
8215817Srrs * a) Redistributions of source code must retain the above copyright notice,
9228653Stuexen *    this list of conditions and the following disclaimer.
10215817Srrs *
11215817Srrs * b) Redistributions in binary form must reproduce the above copyright
12215817Srrs *    notice, this list of conditions and the following disclaimer in
13228653Stuexen *    the documentation and/or other materials provided with the distribution.
14215817Srrs *
15215817Srrs * c) Neither the name of Cisco Systems, Inc. nor the names of its
16215817Srrs *    contributors may be used to endorse or promote products derived
17215817Srrs *    from this software without specific prior written permission.
18215817Srrs *
19215817Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20215817Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21215817Srrs * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22215817Srrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23215817Srrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24215817Srrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25215817Srrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26215817Srrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27215817Srrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28215817Srrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29215817Srrs * THE POSSIBILITY OF SUCH DAMAGE.
30215817Srrs */
31235828Stuexen
32215817Srrs#include <sys/cdefs.h>
33215817Srrs__FBSDID("$FreeBSD$");
34235828Stuexen
35235828Stuexen#ifndef _NETINET_SCTP_DTRACE_DECLARE_H_
36235828Stuexen#define _NETINET_SCTP_DTRACE_DECLARE_H_
37235828Stuexen
38215817Srrs#include "opt_kdtrace.h"
39215817Srrs#include <sys/kernel.h>
40215817Srrs#include <sys/sdt.h>
41215817Srrs
42215817Srrs/* Declare the SCTP provider */
43215817SrrsSDT_PROVIDER_DECLARE(sctp);
44215817Srrs
45215817Srrs/* The probes we have so far: */
46215817Srrs
47215817Srrs/* One to track a net's cwnd */
48215817Srrs/* initial */
49215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, init);
50215817Srrs/* update at a ack -- increase */
51215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, ack);
52215817Srrs/* update at a fast retransmit -- decrease */
53215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, fr);
54215817Srrs/* update at a time-out -- decrease */
55215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, to);
56215817Srrs/* update at a burst-limit -- decrease */
57215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, bl);
58215817Srrs/* update at a ECN -- decrease */
59215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, ecn);
60215817Srrs/* update at a Packet-Drop -- decrease */
61215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, pd);
62219057Srrs/* Rttvar probe declaration */
63219057SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, rttvar);
64219397SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, rttstep);
65215817Srrs
66215817Srrs/* One to track an associations rwnd */
67215817SrrsSDT_PROBE_DECLARE(sctp, rwnd, assoc, val);
68215817Srrs
69215817Srrs/* One to track a net's flight size */
70215817SrrsSDT_PROBE_DECLARE(sctp, flightsize, net, val);
71215817Srrs
72215817Srrs/* One to track an associations flight size */
73215817SrrsSDT_PROBE_DECLARE(sctp, flightsize, assoc, val);
74215817Srrs
75215817Srrs
76215817Srrs
77215817Srrs
78215817Srrs
79215817Srrs
80215817Srrs#endif
81