Linux DTrace development list
 help / color / mirror / Atom feed
* [PATCH] uprobe: do not call populate_args() for pid probes
@ 2025-08-14  3:58 Kris Van Hees
  2025-08-14 16:47 ` [DTrace-devel] " Eugene Loh
  0 siblings, 1 reply; 5+ messages in thread
From: Kris Van Hees @ 2025-08-14  3:58 UTC (permalink / raw)
  To: dtrace, dtrace-devel

Only USDT (regular and is-enabled) probes need populate_args().

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
---
 libdtrace/dt_prov_uprobe.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libdtrace/dt_prov_uprobe.c b/libdtrace/dt_prov_uprobe.c
index c63d58383..605ae8397 100644
--- a/libdtrace/dt_prov_uprobe.c
+++ b/libdtrace/dt_prov_uprobe.c
@@ -994,8 +994,10 @@ static dt_probe_t *create_underlying(dtrace_hdl_t *dtp,
 		 */
 	}
 
-	if (populate_args(dtp, psp, upp) < 0)
-		goto fail;
+	if (upp->flags & (PP_IS_ENABLED | PP_IS_USDT)) {
+		if (populate_args(dtp, psp, upp) < 0)
+			goto fail;
+	}
 
 	return uprp;
 
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-15 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14  3:58 [PATCH] uprobe: do not call populate_args() for pid probes Kris Van Hees
2025-08-14 16:47 ` [DTrace-devel] " Eugene Loh
2025-08-14 19:27   ` Kris Van Hees
2025-08-15  6:13     ` Eugene Loh
2025-08-15 14:54       ` Kris Van Hees

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox