Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2021 19:00:20 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 09aa9a1f82bf - stable/12 - ipfilter: Add DTrace SDT probe
Message-ID:  <202112091900.1B9J0KuS055446@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=09aa9a1f82bfccfd7e87dcf7f2bf055d2c137b52

commit 09aa9a1f82bfccfd7e87dcf7f2bf055d2c137b52
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:52:11 +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 ",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112091900.1B9J0KuS055446>