git: bc942a227a46 - stable/13 - ipfilter: Add DTrace SDT probe
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 18:58:58 UTC
The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=bc942a227a466255ea2da9b3d7e544b72243aaf7 commit bc942a227a466255ea2da9b3d7e544b72243aaf7 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2021-10-05 04:26:58 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2021-12-09 18:50:22 +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. (cherry picked from commit 106f42596e4b61c26425735a3999bd51d39dd82c) --- 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 ",