sctp_dtrace_declare.h revision 219397
1215817Srrs/*-
2218319Srrs * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved.
3218319Srrs * Copyright (c) 2008-2011, 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,
9215817Srrs *   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
13215817Srrs *   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 */
31215817Srrs#include <sys/cdefs.h>
32215817Srrs__FBSDID("$FreeBSD: head/sys/netinet/sctp_dtrace_declare.h 219397 2011-03-08 11:58:25Z rrs $");
33215817Srrs#ifndef __sctp_dtrace_declare_h__
34215817Srrs#include "opt_kdtrace.h"
35215817Srrs#include <sys/kernel.h>
36215817Srrs#include <sys/sdt.h>
37215817Srrs
38215817Srrs/* Declare the SCTP provider */
39215817SrrsSDT_PROVIDER_DECLARE(sctp);
40215817Srrs
41215817Srrs/* The probes we have so far: */
42215817Srrs
43215817Srrs/* One to track a net's cwnd */
44215817Srrs/* initial */
45215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, init);
46215817Srrs/* update at a ack -- increase */
47215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, ack);
48215817Srrs/* update at a fast retransmit -- decrease */
49215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, fr);
50215817Srrs/* update at a time-out -- decrease */
51215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, to);
52215817Srrs/* update at a burst-limit -- decrease */
53215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, bl);
54215817Srrs/* update at a ECN -- decrease */
55215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, ecn);
56215817Srrs/* update at a Packet-Drop -- decrease */
57215817SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, pd);
58219057Srrs/* Rttvar probe declaration */
59219057SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, rttvar);
60219397SrrsSDT_PROBE_DECLARE(sctp, cwnd, net, rttstep);
61215817Srrs
62215817Srrs/* One to track an associations rwnd */
63215817SrrsSDT_PROBE_DECLARE(sctp, rwnd, assoc, val);
64215817Srrs
65215817Srrs/* One to track a net's flight size */
66215817SrrsSDT_PROBE_DECLARE(sctp, flightsize, net, val);
67215817Srrs
68215817Srrs/* One to track an associations flight size */
69215817SrrsSDT_PROBE_DECLARE(sctp, flightsize, assoc, val);
70215817Srrs
71215817Srrs
72215817Srrs
73215817Srrs
74215817Srrs
75215817Srrs
76215817Srrs#endif
77