1/*-
2 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved.
3 * Copyright (c) 2008-2011, 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#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/netinet/sctp_dtrace_declare.h 228653 2011-12-17 19:21:40Z tuexen $");
33#ifndef __sctp_dtrace_declare_h__
34#include "opt_kdtrace.h"
35#include <sys/kernel.h>
36#include <sys/sdt.h>
37
38/* Declare the SCTP provider */
39SDT_PROVIDER_DECLARE(sctp);
40
41/* The probes we have so far: */
42
43/* One to track a net's cwnd */
44/* initial */
45SDT_PROBE_DECLARE(sctp, cwnd, net, init);
46/* update at a ack -- increase */
47SDT_PROBE_DECLARE(sctp, cwnd, net, ack);
48/* update at a fast retransmit -- decrease */
49SDT_PROBE_DECLARE(sctp, cwnd, net, fr);
50/* update at a time-out -- decrease */
51SDT_PROBE_DECLARE(sctp, cwnd, net, to);
52/* update at a burst-limit -- decrease */
53SDT_PROBE_DECLARE(sctp, cwnd, net, bl);
54/* update at a ECN -- decrease */
55SDT_PROBE_DECLARE(sctp, cwnd, net, ecn);
56/* update at a Packet-Drop -- decrease */
57SDT_PROBE_DECLARE(sctp, cwnd, net, pd);
58/* Rttvar probe declaration */
59SDT_PROBE_DECLARE(sctp, cwnd, net, rttvar);
60SDT_PROBE_DECLARE(sctp, cwnd, net, rttstep);
61
62/* One to track an associations rwnd */
63SDT_PROBE_DECLARE(sctp, rwnd, assoc, val);
64
65/* One to track a net's flight size */
66SDT_PROBE_DECLARE(sctp, flightsize, net, val);
67
68/* One to track an associations flight size */
69SDT_PROBE_DECLARE(sctp, flightsize, assoc, val);
70
71
72
73
74
75
76#endif
2 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved.
3 * Copyright (c) 2008-2011, 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#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/netinet/sctp_dtrace_declare.h 228653 2011-12-17 19:21:40Z tuexen $");
33#ifndef __sctp_dtrace_declare_h__
34#include "opt_kdtrace.h"
35#include <sys/kernel.h>
36#include <sys/sdt.h>
37
38/* Declare the SCTP provider */
39SDT_PROVIDER_DECLARE(sctp);
40
41/* The probes we have so far: */
42
43/* One to track a net's cwnd */
44/* initial */
45SDT_PROBE_DECLARE(sctp, cwnd, net, init);
46/* update at a ack -- increase */
47SDT_PROBE_DECLARE(sctp, cwnd, net, ack);
48/* update at a fast retransmit -- decrease */
49SDT_PROBE_DECLARE(sctp, cwnd, net, fr);
50/* update at a time-out -- decrease */
51SDT_PROBE_DECLARE(sctp, cwnd, net, to);
52/* update at a burst-limit -- decrease */
53SDT_PROBE_DECLARE(sctp, cwnd, net, bl);
54/* update at a ECN -- decrease */
55SDT_PROBE_DECLARE(sctp, cwnd, net, ecn);
56/* update at a Packet-Drop -- decrease */
57SDT_PROBE_DECLARE(sctp, cwnd, net, pd);
58/* Rttvar probe declaration */
59SDT_PROBE_DECLARE(sctp, cwnd, net, rttvar);
60SDT_PROBE_DECLARE(sctp, cwnd, net, rttstep);
61
62/* One to track an associations rwnd */
63SDT_PROBE_DECLARE(sctp, rwnd, assoc, val);
64
65/* One to track a net's flight size */
66SDT_PROBE_DECLARE(sctp, flightsize, net, val);
67
68/* One to track an associations flight size */
69SDT_PROBE_DECLARE(sctp, flightsize, assoc, val);
70
71
72
73
74
75
76#endif