[DTrace-devel] [PATCH 01/15] parser: ensure 'args' is not marked DPTR
Kris Van Hees
kris.van.hees at oracle.com
Thu Feb 23 07:23:45 UTC 2023
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
libdtrace/dt_parser.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libdtrace/dt_parser.c b/libdtrace/dt_parser.c
index e4d6a062..ea9ff15b 100644
--- a/libdtrace/dt_parser.c
+++ b/libdtrace/dt_parser.c
@@ -2838,11 +2838,12 @@ dt_xcook_ident(dt_node_t *dnp, dt_idhash_t *dhp, uint_t idkind, int create)
* REF-type, we mark this variable node as a pointer to
* DTrace-managed storage (DPTR).
*
- * We account for one notable exception: execname.
+ * We account for two notable exception: args and execname.
*/
if (idp->di_flags & DT_IDFLG_DPTR)
dnp->dn_flags |= DT_NF_DPTR;
else if ((dnp->dn_flags & DT_NF_REF) &&
+ idp->di_id != DIF_VAR_ARGS &&
idp->di_id != DIF_VAR_EXECNAME)
dnp->dn_flags |= DT_NF_DPTR;
--
2.39.1
More information about the DTrace-devel
mailing list