summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_kdtrace.c
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-10-02 17:14:12 +0000
committermarkj <markj@FreeBSD.org>2013-10-02 17:14:12 +0000
commit8ff2d520091393b06e526a412f4f24c98825d660 (patch)
tree44ce7795a7628a303394f80d0849716c9f73534e /sys/netinet/in_kdtrace.c
parent44a6c311ba7afe3ac99633d0390daa2974f81b61 (diff)
downloadFreeBSD-src-8ff2d520091393b06e526a412f4f24c98825d660.zip
FreeBSD-src-8ff2d520091393b06e526a412f4f24c98825d660.tar.gz
Add a separate translator for headers passed to the TCP probes in the
input path. These probes get some of the fields in host order, whereas the output probes get them in network order, so a single translator isn't enough. This workaround ensures that the problem is essentially invisble to users: none of the probe arguments or their fields have changed. Approved by: re (hrs)
Diffstat (limited to 'sys/netinet/in_kdtrace.c')
-rw-r--r--sys/netinet/in_kdtrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/in_kdtrace.c b/sys/netinet/in_kdtrace.c
index 85a5a4e..fc39e43 100644
--- a/sys/netinet/in_kdtrace.c
+++ b/sys/netinet/in_kdtrace.c
@@ -60,7 +60,7 @@ SDT_PROBE_DEFINE5_XLATE(tcp, , , accept_established, accept-established,
"struct tcpcb *", "csinfo_t *",
"uint8_t *", "ipinfo_t *",
"struct tcpcb *", "tcpsinfo_t *" ,
- "struct tcphdr *", "tcpinfo_t *");
+ "struct tcphdr *", "tcpinfoh_t *");
SDT_PROBE_DEFINE5_XLATE(tcp, , , accept_refused, accept-refused,
"void *", "pktinfo_t *",
@@ -74,14 +74,14 @@ SDT_PROBE_DEFINE5_XLATE(tcp, , , connect_established, connect-established,
"struct tcpcb *", "csinfo_t *",
"uint8_t *", "ipinfo_t *",
"struct tcpcb *", "tcpsinfo_t *" ,
- "struct tcphdr *", "tcpinfo_t *");
+ "struct tcphdr *", "tcpinfoh_t *");
SDT_PROBE_DEFINE5_XLATE(tcp, , , connect_refused, connect-refused,
"void *", "pktinfo_t *",
"struct tcpcb *", "csinfo_t *",
"uint8_t *", "ipinfo_t *",
"struct tcpcb *", "tcpsinfo_t *" ,
- "struct tcphdr *", "tcpinfo_t *");
+ "struct tcphdr *", "tcpinfoh_t *");
SDT_PROBE_DEFINE5_XLATE(tcp, , , connect_request, connect-request,
"void *", "pktinfo_t *",
@@ -95,7 +95,7 @@ SDT_PROBE_DEFINE5_XLATE(tcp, , , receive, receive,
"struct tcpcb *", "csinfo_t *",
"uint8_t *", "ipinfo_t *",
"struct tcpcb *", "tcpsinfo_t *" ,
- "struct tcphdr *", "tcpinfo_t *");
+ "struct tcphdr *", "tcpinfoh_t *");
SDT_PROBE_DEFINE5_XLATE(tcp, , , send, send,
"void *", "pktinfo_t *",
OpenPOWER on IntegriCloud