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

eugene.loh
2024-08-29T05:22:32Z

From: Eugene Loh <eugene.loh@oracle.com>

Signed-off-by: Eugene Loh <eugene.loh@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