Skip to content

Commit

Permalink
Store probe description components in the global string table
Browse files Browse the repository at this point in the history
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@oracle.com>
Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
  • Loading branch information
kvanhees committed Jun 18, 2021
1 parent a73bd1b commit ceeb427
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libdtrace/dt_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ceeb427

Please sign in to comment.