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