sctp_dtrace_declare.h revision 215817
1262710Sganbold/*-
2263711Sganbold * Copyright (c) 2010, by Randall Stewart & Michael Tuexen,
3262710Sganbold * All rights reserved.
4262710Sganbold *
5262710Sganbold * Redistribution and use in source and binary forms, with or without
6262710Sganbold * modification, are permitted provided that the following conditions are met:
7262710Sganbold *
8262710Sganbold * a) Redistributions of source code must retain the above copyright notice,
9262710Sganbold *   this list of conditions and the following disclaimer.
10262710Sganbold *
11262710Sganbold * b) Redistributions in binary form must reproduce the above copyright
12262710Sganbold *    notice, this list of conditions and the following disclaimer in
13262710Sganbold *   the documentation and/or other materials provided with the distribution.
14262710Sganbold *
15262710Sganbold * c) Neither the name of Cisco Systems, Inc. nor the names of its
16262710Sganbold *    contributors may be used to endorse or promote products derived
17262710Sganbold *    from this software without specific prior written permission.
18262710Sganbold *
19262710Sganbold * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20262710Sganbold * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21262710Sganbold * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22262710Sganbold * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23262710Sganbold * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24262710Sganbold * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25262710Sganbold * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26262710Sganbold * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27262710Sganbold * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28262710Sganbold * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29262710Sganbold * THE POSSIBILITY OF SUCH DAMAGE.
30262710Sganbold */
31262710Sganbold#include <sys/cdefs.h>
32262710Sganbold__FBSDID("$FreeBSD: head/sys/netinet/sctp_dtrace_declare.h 215817 2010-11-25 13:39:55Z rrs $");
33262710Sganbold#ifndef __sctp_dtrace_declare_h__
34262710Sganbold#include "opt_kdtrace.h"
35262710Sganbold#include <sys/kernel.h>
36262710Sganbold#include <sys/sdt.h>
37262710Sganbold
38262710Sganbold/* Declare the SCTP provider */
39262710SganboldSDT_PROVIDER_DECLARE(sctp);
40262710Sganbold
41262710Sganbold/* The probes we have so far: */
42262710Sganbold
43262710Sganbold/* One to track a net's cwnd */
44262710Sganbold/* initial */
45262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, init);
46262710Sganbold/* update at a ack -- increase */
47262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, ack);
48262710Sganbold/* update at a fast retransmit -- decrease */
49262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, fr);
50262710Sganbold/* update at a time-out -- decrease */
51262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, to);
52262710Sganbold/* update at a burst-limit -- decrease */
53262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, bl);
54262710Sganbold/* update at a ECN -- decrease */
55262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, ecn);
56262710Sganbold/* update at a Packet-Drop -- decrease */
57262710SganboldSDT_PROBE_DECLARE(sctp, cwnd, net, pd);
58262710Sganbold
59262710Sganbold/* One to track an associations rwnd */
60262710SganboldSDT_PROBE_DECLARE(sctp, rwnd, assoc, val);
61262710Sganbold
62262710Sganbold/* One to track a net's flight size */
63262710SganboldSDT_PROBE_DECLARE(sctp, flightsize, net, val);
64262710Sganbold
65262710Sganbold/* One to track an associations flight size */
66262710SganboldSDT_PROBE_DECLARE(sctp, flightsize, assoc, val);
67262710Sganbold
68262710Sganbold
69262710Sganbold
70262710Sganbold
71262710Sganbold
72262710Sganbold
73262710Sganbold#endif
74262710Sganbold