aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_kdtrace.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2019-10-14 20:32:11 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2019-10-14 20:32:11 +0000
commit776cd558f0553e0ce641765843ee6cd812c4f057 (patch)
treee18647ba17ecf6b98128ebb815197549452a3df8 /sys/netinet/sctp_kdtrace.c
parent8fd18ef9b6c40ee4e050d802ffef011ced20b5a2 (diff)
Notes
Diffstat (limited to 'sys/netinet/sctp_kdtrace.c')
-rw-r--r--sys/netinet/sctp_kdtrace.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/sys/netinet/sctp_kdtrace.c b/sys/netinet/sctp_kdtrace.c
index 06fddc28f78cc..3b764c11d8402 100644
--- a/sys/netinet/sctp_kdtrace.c
+++ b/sys/netinet/sctp_kdtrace.c
@@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/kernel.h>
#include <sys/sdt.h>
-SDT_PROVIDER_DECLARE(sctp);
+SDT_PROVIDER_DEFINE(sctp);
/********************************************************/
/* Cwnd probe - tracks changes in the congestion window on a netp */
@@ -171,3 +171,29 @@ SDT_PROBE_DEFINE4(sctp, flightsize, assoc, val,
* order. */
"int", /* The up/down amount */
"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 *");