[DTrace-devel] [PATCH 02/12] slight code refactoring to eliminate gratuitous differences between providers

eugene.loh at oracle.com eugene.loh at oracle.com
Sat Jul 11 17:38:26 PDT 2020


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

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 libdtrace/dt_prov_dtrace.c | 3 +--
 libdtrace/dt_prov_fbt.c    | 2 +-
 libdtrace/dt_prov_sdt.c    | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/libdtrace/dt_prov_dtrace.c b/libdtrace/dt_prov_dtrace.c
index 4f3ad4eb..507aa60f 100644
--- a/libdtrace/dt_prov_dtrace.c
+++ b/libdtrace/dt_prov_dtrace.c
@@ -36,7 +36,6 @@ static int populate(dtrace_hdl_t *dtp)
 	dt_provider_t	*prv;
 	int		n = 0;
 
-
 	prv = dt_provider_create(dtp, prvname, &dt_dtrace, &pattr);
 	if (prv == NULL)
 		return 0;
@@ -60,7 +59,7 @@ static int populate(dtrace_hdl_t *dtp)
  *	int dt_dtrace(dt_pt_regs *regs)
  *
  * The trampoline will populate a dt_bpf_context struct and then call the
- * function that implements tha compiled D clause.  It returns the value that
+ * function that implements the compiled D clause.  It returns the value that
  * it gets back from that function.
  */
 static void trampoline(dt_pcb_t *pcb)
diff --git a/libdtrace/dt_prov_fbt.c b/libdtrace/dt_prov_fbt.c
index 0efed358..2296fb41 100644
--- a/libdtrace/dt_prov_fbt.c
+++ b/libdtrace/dt_prov_fbt.c
@@ -156,7 +156,7 @@ static int populate(dtrace_hdl_t *dtp)
  *	int dt_fbt(dt_pt_regs *regs)
  *
  * The trampoline will populate a dt_bpf_context struct and then call the
- * function that implements tha compiled D clause.  It returns the value that
+ * function that implements the compiled D clause.  It returns the value that
  * it gets back from that function.
  */
 static void trampoline(dt_pcb_t *pcb)
diff --git a/libdtrace/dt_prov_sdt.c b/libdtrace/dt_prov_sdt.c
index 584291c8..380a1ef8 100644
--- a/libdtrace/dt_prov_sdt.c
+++ b/libdtrace/dt_prov_sdt.c
@@ -307,7 +307,7 @@ static void trampoline(dt_pcb_t *pcb)
 	dt_irlist_t	*dlp = &pcb->pcb_ir;
 	struct bpf_insn	instr;
 	uint_t		lbl_exit = dt_irlist_label(dlp);
-	dt_ident_t	*idp = dt_dlib_get_var(pcb->pcb_hdl, "EPID");
+	dt_ident_t	*idp;
 
 #define DCTX_FP(off)	(-(ushort_t)DCTX_SIZE + (ushort_t)(off))
 
-- 
2.18.2




More information about the DTrace-devel mailing list