[DTrace-devel] [PATCH 2/3] Defer stripping out "__data_loc" until we know that is useful

eugene.loh at oracle.com eugene.loh at oracle.com
Sat Sep 13 15:56:18 UTC 2025


From: Eugene Loh <eugene.loh at oracle.com>

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 libdtrace/dt_provider_tp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libdtrace/dt_provider_tp.c b/libdtrace/dt_provider_tp.c
index 33821f2c7..a6f978e3f 100644
--- a/libdtrace/dt_provider_tp.c
+++ b/libdtrace/dt_provider_tp.c
@@ -208,12 +208,13 @@ dt_tp_event_info(dtrace_hdl_t *dtp, FILE *f, int skip, tp_probe_t *tpp,
 		p = buf;
 		if (sscanf(buf, " field:%[^;]", p) <= 0)
 			continue;
-		sscanf(p, "__data_loc %[^;]", p);
 
 		/* We found a field: description - see if we should skip it. */
 		if (argc < 0)
 			goto skip;
 
+		sscanf(p, "__data_loc %[^;]", p);
+
 		/*
 		 * If the last character is not ']', the last token must be the
 		 * identifier name.  Get rid of it.
-- 
2.47.3




More information about the DTrace-devel mailing list