[DTrace-devel] [PATCH 01/16] Remove fasttrap references and introduce pid-provider variants
Kris Van Hees
kris.van.hees at oracle.com
Fri Mar 19 18:24:53 PDT 2021
On Fri, Mar 19, 2021 at 07:11:14PM -0400, Eugene Loh wrote:
> Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
> with some minor comments below.
>
> On 3/19/21 12:54 AM, Kris Van Hees wrote:
> > Since the fasttrap provider is no longer necessary, the following
> > two datatypes are being renamed:
> >
> > fasttrap_probe_type_t -> pid_probe_type_t
> > fasttrap_probe_spec_t -> pid_probe_spec_t
>
> The pid_*_t names have extraneous underscores; should be
> pid_probetype_t and pid_probespec_t.
Oops, yes. How silly.
> > Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> >
> > diff --git a/include/dtrace/pid.h b/include/dtrace/pid.h
> > +typedef enum pid_probetype {
> > + DTFTP_NONE = 0,
> > + DTFTP_ENTRY,
> > + DTFTP_RETURN,
> > + DTFTP_OFFSETS,
> > + DTFTP_POST_OFFSETS,
> > + DTFTP_IS_ENABLED
> > +} pid_probetype_t;
>
> You are cleaning the names up so meticulously, it's funny to see these
> vestigial DTFTP_* prefixes here. Wouldn't DTPPT_* or something be more
> consistent?
Very good point! I'll change those prefixes. Very nice catch.
More information about the DTrace-devel
mailing list