Re: [PATCH 06/22] Fix provider lookup to use prv not prb

Kris Van Hees
2024-09-13T20:01:21Z

On Thu, Aug 29, 2024 at 01:22:03AM -0400, eugene.loh@oracle.com wrote:
> From: Eugene Loh <eugene.loh@oracle.com>
>
> Signed-off-by: Eugene Loh <eugene.loh@oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>

> ---
> libdtrace/dt_prov_uprobe.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libdtrace/dt_prov_uprobe.c b/libdtrace/dt_prov_uprobe.c
> index 09a9ae58..cbde6a48 100644
> --- a/libdtrace/dt_prov_uprobe.c
> +++ b/libdtrace/dt_prov_uprobe.c
> @@ -247,7 +247,7 @@ static int provide_probe(dtrace_hdl_t *dtp, const pid_probespec_t *psp,
> pd.prb = prb;
>
> /* Get (or create) the provider for the PID of the probe. */
> - pvp = dt_provider_lookup(dtp, pd.prb);
> + pvp = dt_provider_lookup(dtp, pd.prv);
> if (pvp == NULL) {
> pvp = dt_provider_create(dtp, pd.prv, pvops, &pattr, NULL);
> if (pvp == NULL)
> --
> 2.43.5
>