The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netinet/sctp_dtrace_define.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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: releng/9.0/sys/netinet/sctp_dtrace_define.h 219397 2011-03-08 11:58:25Z rrs $");
   33 #ifndef __sctp_dtrace_define_h__
   34 #include "opt_kdtrace.h"
   35 #include <sys/kernel.h>
   36 #include <sys/sdt.h>
   37 
   38 SDT_PROVIDER_DEFINE(sctp);
   39 
   40 /********************************************************/
   41 /* Cwnd probe - tracks changes in the congestion window on a netp */
   42 /********************************************************/
   43 /* Initial */
   44 SDT_PROBE_DEFINE(sctp, cwnd, net, init, init);
   45 /* The Vtag for this end */
   46 SDT_PROBE_ARGTYPE(sctp, cwnd, net, init, 0, "uint32_t");
   47 /* The port number of the local side << 16 | port number of remote
   48  * in network byte order.
   49  */
   50 SDT_PROBE_ARGTYPE(sctp, cwnd, net, init, 1, "uint32_t");
   51 /* The pointer to the struct sctp_nets * changing */
   52 SDT_PROBE_ARGTYPE(sctp, cwnd, net, init, 2, "uintptr_t");
   53 /* The old value of the cwnd  */
   54 SDT_PROBE_ARGTYPE(sctp, cwnd, net, init, 3, "int");
   55 /* The new value of the cwnd */
   56 SDT_PROBE_ARGTYPE(sctp, cwnd, net, init, 4, "int");
   57 
   58 
   59 /* ACK-INCREASE */
   60 SDT_PROBE_DEFINE(sctp, cwnd, net, ack, ack);
   61 /* The Vtag for this end */
   62 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ack, 0, "uint32_t");
   63 /* The port number of the local side << 16 | port number of remote
   64  * in network byte order.
   65  */
   66 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ack, 1, "uint32_t");
   67 /* The pointer to the struct sctp_nets * changing */
   68 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ack, 2, "uintptr_t");
   69 /* The old value of the cwnd  */
   70 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ack, 3, "int");
   71 /* The new value of the cwnd */
   72 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ack, 4, "int");
   73 
   74 
   75 /* ACK-INCREASE */
   76 SDT_PROBE_DEFINE(sctp, cwnd, net, rttvar, rttvar);
   77 /* The Vtag << 32 | localport << 16 | remoteport */
   78 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttvar, 0, "uint64_t");
   79 /* obw | nbw */
   80 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttvar, 1, "uint64_t");
   81 /* bwrtt | newrtt */
   82 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttvar, 2, "uint64_t");
   83 /* flight */
   84 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttvar, 3, "uint64_t");
   85 /* (cwnd << 32) | point << 16 | retval(0/1) */
   86 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttvar, 4, "uint64_t");
   87 
   88 
   89 SDT_PROBE_DEFINE(sctp, cwnd, net, rttstep, rttstep);
   90 /* The Vtag << 32 | localport << 16 | remoteport */
   91 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttstep, 0, "uint64_t");
   92 /* obw | nbw */
   93 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttstep, 1, "uint64_t");
   94 /* bwrtt | nrtt */
   95 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttstep, 2, "uint64_t");
   96 /* cwnd_saved | stepcnt << 16 | oldstep  */
   97 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttstep, 3, "uint64_t");
   98 /* (cwnd << 32) | point << 16 | retval(0/1) */
   99 SDT_PROBE_ARGTYPE(sctp, cwnd, net, rttstep, 4, "uint64_t");
  100 
  101 
  102 /* FastRetransmit-DECREASE */
  103 SDT_PROBE_DEFINE(sctp, cwnd, net, fr, fr);
  104 /* The Vtag for this end */
  105 SDT_PROBE_ARGTYPE(sctp, cwnd, net, fr, 0, "uint32_t");
  106 /* The port number of the local side << 16 | port number of remote
  107  * in network byte order.
  108  */
  109 SDT_PROBE_ARGTYPE(sctp, cwnd, net, fr, 1, "uint32_t");
  110 /* The pointer to the struct sctp_nets * changing */
  111 SDT_PROBE_ARGTYPE(sctp, cwnd, net, fr, 2, "uintptr_t");
  112 /* The old value of the cwnd  */
  113 SDT_PROBE_ARGTYPE(sctp, cwnd, net, fr, 3, "int");
  114 /* The new value of the cwnd */
  115 SDT_PROBE_ARGTYPE(sctp, cwnd, net, fr, 4, "int");
  116 
  117 
  118 /* TimeOut-DECREASE */
  119 SDT_PROBE_DEFINE(sctp, cwnd, net, to, to);
  120 /* The Vtag for this end */
  121 SDT_PROBE_ARGTYPE(sctp, cwnd, net, to, 0, "uint32_t");
  122 /* The port number of the local side << 16 | port number of remote
  123  * in network byte order.
  124  */
  125 SDT_PROBE_ARGTYPE(sctp, cwnd, net, to, 1, "uint32_t");
  126 /* The pointer to the struct sctp_nets * changing */
  127 SDT_PROBE_ARGTYPE(sctp, cwnd, net, to, 2, "uintptr_t");
  128 /* The old value of the cwnd  */
  129 SDT_PROBE_ARGTYPE(sctp, cwnd, net, to, 3, "int");
  130 /* The new value of the cwnd */
  131 SDT_PROBE_ARGTYPE(sctp, cwnd, net, to, 4, "int");
  132 
  133 
  134 /* BurstLimit-DECREASE */
  135 SDT_PROBE_DEFINE(sctp, cwnd, net, bl, bl);
  136 /* The Vtag for this end */
  137 SDT_PROBE_ARGTYPE(sctp, cwnd, net, bl, 0, "uint32_t");
  138 /* The port number of the local side << 16 | port number of remote
  139  * in network byte order.
  140  */
  141 SDT_PROBE_ARGTYPE(sctp, cwnd, net, bl, 1, "uint32_t");
  142 /* The pointer to the struct sctp_nets * changing */
  143 SDT_PROBE_ARGTYPE(sctp, cwnd, net, bl, 2, "uintptr_t");
  144 /* The old value of the cwnd  */
  145 SDT_PROBE_ARGTYPE(sctp, cwnd, net, bl, 3, "int");
  146 /* The new value of the cwnd */
  147 SDT_PROBE_ARGTYPE(sctp, cwnd, net, bl, 4, "int");
  148 
  149 
  150 /* ECN-DECREASE */
  151 SDT_PROBE_DEFINE(sctp, cwnd, net, ecn, ecn);
  152 /* The Vtag for this end */
  153 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ecn, 0, "uint32_t");
  154 /* The port number of the local side << 16 | port number of remote
  155  * in network byte order.
  156  */
  157 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ecn, 1, "uint32_t");
  158 /* The pointer to the struct sctp_nets * changing */
  159 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ecn, 2, "uintptr_t");
  160 /* The old value of the cwnd  */
  161 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ecn, 3, "int");
  162 /* The new value of the cwnd */
  163 SDT_PROBE_ARGTYPE(sctp, cwnd, net, ecn, 4, "int");
  164 
  165 
  166 /* PacketDrop-DECREASE */
  167 SDT_PROBE_DEFINE(sctp, cwnd, net, pd, pd);
  168 /* The Vtag for this end */
  169 SDT_PROBE_ARGTYPE(sctp, cwnd, net, pd, 0, "uint32_t");
  170 /* The port number of the local side << 16 | port number of remote
  171  * in network byte order.
  172  */
  173 SDT_PROBE_ARGTYPE(sctp, cwnd, net, pd, 1, "uint32_t");
  174 /* The pointer to the struct sctp_nets * changing */
  175 SDT_PROBE_ARGTYPE(sctp, cwnd, net, pd, 2, "uintptr_t");
  176 /* The old value of the cwnd  */
  177 SDT_PROBE_ARGTYPE(sctp, cwnd, net, pd, 3, "int");
  178 /* The new value of the cwnd */
  179 SDT_PROBE_ARGTYPE(sctp, cwnd, net, pd, 4, "int");
  180 
  181 
  182 
  183 /********************************************************/
  184 /* Rwnd probe - tracks changes in the receiver window for an assoc */
  185 /********************************************************/
  186 SDT_PROBE_DEFINE(sctp, rwnd, assoc, val, val);
  187 /* The Vtag for this end */
  188 SDT_PROBE_ARGTYPE(sctp, rwnd, assoc, val, 0, "uint32_t");
  189 /* The port number of the local side << 16 | port number of remote
  190  * in network byte order.
  191  */
  192 SDT_PROBE_ARGTYPE(sctp, rwnd, assoc, val, 1, "uint32_t");
  193 /* The up/down amount */
  194 SDT_PROBE_ARGTYPE(sctp, rwnd, assoc, val, 2, "int");
  195 /* The new value of the cwnd */
  196 SDT_PROBE_ARGTYPE(sctp, rwnd, assoc, val, 3, "int");
  197 
  198 /********************************************************/
  199 /* flight probe - tracks changes in the flight size on a net or assoc */
  200 /********************************************************/
  201 SDT_PROBE_DEFINE(sctp, flightsize, net, val, val);
  202 /* The Vtag for this end */
  203 SDT_PROBE_ARGTYPE(sctp, flightsize, net, val, 0, "uint32_t");
  204 /* The port number of the local side << 16 | port number of remote
  205  * in network byte order.
  206  */
  207 SDT_PROBE_ARGTYPE(sctp, flightsize, net, val, 1, "uint32_t");
  208 /* The pointer to the struct sctp_nets * changing */
  209 SDT_PROBE_ARGTYPE(sctp, flightsize, net, val, 2, "uintptr_t");
  210 /* The up/down amount */
  211 SDT_PROBE_ARGTYPE(sctp, flightsize, net, val, 3, "int");
  212 /* The new value of the cwnd */
  213 SDT_PROBE_ARGTYPE(sctp, flightsize, net, val, 4, "int");
  214 /********************************************************/
  215 /* The total flight version */
  216 /********************************************************/
  217 SDT_PROBE_DEFINE(sctp, flightsize, assoc, val, val);
  218 /* The Vtag for this end */
  219 SDT_PROBE_ARGTYPE(sctp, flightsize, assoc, val, 0, "uint32_t");
  220 /* The port number of the local side << 16 | port number of remote
  221  * in network byte order.
  222  */
  223 SDT_PROBE_ARGTYPE(sctp, flightsize, assoc, val, 1, "uint32_t");
  224 /* The up/down amount */
  225 SDT_PROBE_ARGTYPE(sctp, flightsize, assoc, val, 2, "int");
  226 /* The new value of the cwnd */
  227 SDT_PROBE_ARGTYPE(sctp, flightsize, assoc, val, 3, "int");
  228 
  229 #endif

Cache object: 94026e3123fd558b9327d89715dbd47d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.