[DTrace-devel] [PATCH 16/19] Ignore clauses: use underlying probe's function information
Kris Van Hees
kris.van.hees at oracle.com
Thu Oct 24 16:52:40 UTC 2024
On Thu, Aug 29, 2024 at 01:25:55AM -0400, eugene.loh at oracle.com wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at orcle.com>
> ---
> libdtrace/dt_prov_uprobe.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/libdtrace/dt_prov_uprobe.c b/libdtrace/dt_prov_uprobe.c
> index 454c53dc..9d163d70 100644
> --- a/libdtrace/dt_prov_uprobe.c
> +++ b/libdtrace/dt_prov_uprobe.c
> @@ -291,6 +291,11 @@ ignore_clause(dtrace_hdl_t *dtp, int n, const dt_probe_t *uprp)
> * If USDT_FLAG_POSSIBLE, try to use uprp.
> */
>
> + /* We know what function we're in. It must match the probe description (unless "-"). */
> + if (strcmp(pdp->fun, "-") != 0 &&
> + !dt_gmatch(uprp->desc->fun, pdp->fun))
> + return 1;
> +
> return 0;
> }
>
> --
> 2.43.5
>
More information about the DTrace-devel
mailing list