[DTrace-devel] [PATCH 26/47] Correct BPF context mentioned in comments in providers
Kris Van Hees
kris.van.hees at oracle.com
Sun May 3 20:17:40 PDT 2020
The dtrace and FBT providers incorrectly mentioned 'scd' as the BPF
context passed to the dt_program(). It should be 'regs'.
Orabug: 31220516
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
---
libdtrace/dt_prov_dtrace.c | 4 ++--
libdtrace/dt_prov_fbt.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libdtrace/dt_prov_dtrace.c b/libdtrace/dt_prov_dtrace.c
index b2327dc2..e323bc70 100644
--- a/libdtrace/dt_prov_dtrace.c
+++ b/libdtrace/dt_prov_dtrace.c
@@ -42,7 +42,7 @@ static int dtrace_populate(dtrace_hdl_t *dtp)
}
/*
-* Generate a BPF trampoline for a dtrace probe (BEGIN, END, or ERROR).
+ * Generate a BPF trampoline for a dtrace probe (BEGIN, END, or ERROR).
*
* The trampoline function is called when a dtrace probe triggers, and it must
* satisfy the following prototype:
@@ -183,7 +183,7 @@ static void dtrace_trampoline(dt_pcb_t *pcb, int haspred)
}
/*
- * rc = dt_program(scd, dctx);
+ * rc = dt_program(regs, dctx);
*/
idp = dt_dlib_get_func(pcb->pcb_hdl, "dt_program");
assert(idp != NULL);
diff --git a/libdtrace/dt_prov_fbt.c b/libdtrace/dt_prov_fbt.c
index cfaad8af..3262449c 100644
--- a/libdtrace/dt_prov_fbt.c
+++ b/libdtrace/dt_prov_fbt.c
@@ -356,7 +356,7 @@ static void fbt_trampoline(dt_pcb_t *pcb, int haspred)
}
/*
- * rc = dt_program(scd, dctx);
+ * rc = dt_program(regs, dctx);
*/
idp = dt_dlib_get_func(pcb->pcb_hdl, "dt_program");
assert(idp != NULL);
--
2.26.0
More information about the DTrace-devel
mailing list