[DTrace-devel] [PATCH 06/20] Store probe description components in the global string table

Eugene Loh eugene.loh at oracle.com
Wed Jun 2 12:26:11 PDT 2021


Reviewed-by: Eugene Loh <eugene.loh at oracle.com>

On 6/2/21 1:47 AM, Kris Van Hees wrote:
> 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



More information about the DTrace-devel mailing list