git: 106f42596e4b - main - ipfilter: Add DTrace SDT probe
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Dec 2021 14:34:37 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=106f42596e4b61c26425735a3999bd51d39dd82c
commit 106f42596e4b61c26425735a3999bd51d39dd82c
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-05 04:26:58 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-12-04 14:33:12 +0000
ipfilter: Add DTrace SDT probe
Add an SDT probe, using the newly created DT5 macro, in similar vein
to DEBUG_PARSE printf for when FTP junk is anticipated and ok. This
will assist in debugging port (active) FTP proxy issues.
MFC after: 3 days
---
sys/contrib/ipfilter/netinet/ip_ftp_pxy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c b/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
index 0079e884a8b8..4ac7ffc7e5b1 100644
--- a/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
+++ b/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
@@ -1523,6 +1523,8 @@ whilemore:
len = wptr - rptr;
f->ftps_junk = ipf_p_ftp_valid(softf, ftp, rv,
rptr, len);
+ DT5(junk_ftp_valid, int, len, int, rv, u_long, rptr,
+ u_long, wptr, int, f->ftps_junk);
if (softf->ipf_p_ftp_debug & DEBUG_PARSE) {
printf("%s=%d len %d rv %d ptr %lx/%lx ",