[DTrace-devel] [PATCH 06/20] Store probe description components in the global string table
Kris Van Hees
kris.van.hees at oracle.com
Tue Jun 1 22:47:50 PDT 2021
Future implementation of probeprov, probemod, probefunc, and probename
built-in variables requires them to be present in the string table.
The component strings are added to the global string table as probes
are added to the list of enablings,
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
libdtrace/dt_probe.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libdtrace/dt_probe.c b/libdtrace/dt_probe.c
index 2f0a084f..330b3f40 100644
--- a/libdtrace/dt_probe.c
+++ b/libdtrace/dt_probe.c
@@ -452,6 +452,11 @@ dt_probe_enable(dtrace_hdl_t *dtp, dt_probe_t *prp)
dt_list_append(&dtp->dt_enablings, prp);
} else
prp->prov->impl->enable(dtp, prp);
+
+ dt_strtab_insert(dtp->dt_ccstab, prp->desc->prv);
+ dt_strtab_insert(dtp->dt_ccstab, prp->desc->mod);
+ dt_strtab_insert(dtp->dt_ccstab, prp->desc->fun);
+ dt_strtab_insert(dtp->dt_ccstab, prp->desc->prb);
}
void
--
2.31.1
More information about the DTrace-devel
mailing list