[DTrace-devel] [PATCH 2/4] fbt: clean up fprobe/kprobe support
Eugene Loh
eugene.loh at oracle.com
Thu Dec 5 22:05:15 UTC 2024
I wouldn't mind a few commit msg words on what "clean up" means.
Mostly, how/where is dt_fbt_fprobe used? Put another way...
On 12/5/24 13:53, Kris Van Hees via DTrace-devel wrote:
> diff --git a/libdtrace/dt_prov_fbt.c b/libdtrace/dt_prov_fbt.c
> @@ -73,9 +75,10 @@ static int populate(dtrace_hdl_t *dtp)
> dtrace_syminfo_t sip;
> dtrace_probedesc_t pd;
>
> - impl = BPF_HAS(dtp, BPF_FEAT_FENTRY) ? &dt_fbt_fprobe : &dt_fbt_kprobe;
> + if (!BPF_HAS(dtp, BPF_FEAT_FENTRY))
> + dt_fbt = dt_fbt_kprobe;
If the BPF_HAS() test passes, shouldn't we have basically
dt_fbt=dt_fbt_fprobe? In which case, one might arguably go back to the
ternary op?
More information about the DTrace-devel
mailing list