Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/sctp_kdtrace.c
Show All 32 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/sdt.h> | #include <sys/sdt.h> | ||||
SDT_PROVIDER_DECLARE(sctp); | SDT_PROVIDER_DEFINE(sctp); | ||||
/********************************************************/ | /********************************************************/ | ||||
/* Cwnd probe - tracks changes in the congestion window on a netp */ | /* Cwnd probe - tracks changes in the congestion window on a netp */ | ||||
/********************************************************/ | /********************************************************/ | ||||
/* Initial */ | /* Initial */ | ||||
SDT_PROBE_DEFINE5(sctp, cwnd, net, init, | SDT_PROBE_DEFINE5(sctp, cwnd, net, init, | ||||
"uint32_t", /* The Vtag for this end */ | "uint32_t", /* The Vtag for this end */ | ||||
"uint32_t", /* The port number of the local side << 16 | | "uint32_t", /* The port number of the local side << 16 | | ||||
▲ Show 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | |||||
/********************************************************/ | /********************************************************/ | ||||
SDT_PROBE_DEFINE4(sctp, flightsize, assoc, val, | SDT_PROBE_DEFINE4(sctp, flightsize, assoc, val, | ||||
"uint32_t", /* The Vtag for this end */ | "uint32_t", /* The Vtag for this end */ | ||||
"uint32_t", /* The port number of the local side << 16 | | "uint32_t", /* The port number of the local side << 16 | | ||||
* port number of remote in network byte | * port number of remote in network byte | ||||
* order. */ | * order. */ | ||||
"int", /* The up/down amount */ | "int", /* The up/down amount */ | ||||
"int"); /* The new value of the cwnd */ | "int"); /* The new value of the cwnd */ | ||||
/* | |||||
* Standard Solaris-compatible probes. | |||||
*/ | |||||
SDT_PROBE_DEFINE5_XLATE(sctp, , , receive, | |||||
"void *", "pktinfo_t *", | |||||
"struct sctp_tcb *", "csinfo_t *", | |||||
"struct mbuf *", "ipinfo_t *", | |||||
"struct sctp_tcb *", "sctpsinfo_t *" , | |||||
"struct sctphdr *", "sctpinfo_t *"); | |||||
SDT_PROBE_DEFINE5_XLATE(sctp, , , send, | |||||
"void *", "pktinfo_t *", | |||||
"struct sctp_tcb *", "csinfo_t *", | |||||
"uint8_t *", "ipinfo_t *", | |||||
"struct sctp_tcb *", "sctpsinfo_t *" , | |||||
"struct sctphdr *", "sctpinfo_t *"); | |||||
SDT_PROBE_DEFINE6_XLATE(sctp, , , state__change, | |||||
"void *", "void *", | |||||
"struct sctp_tcb *", "csinfo_t *", | |||||
"void *", "void *", | |||||
"struct sctp_tcb *", "sctpsinfo_t *", | |||||
"void *", "void *", | |||||
"int", "sctplsinfo_t *"); |