[DTrace-devel] [PATCH 15/15] Implement the proc provider
Kris Van Hees
kris.van.hees at oracle.com
Thu Feb 23 18:14:37 UTC 2023
On Thu, Feb 23, 2023 at 06:02:48PM +0000, Nick Alcock wrote:
> On 23 Feb 2023, Kris Van Hees told this:
> >> > + { "signal-send", 2, { 1, "int", } },
> >>
> >> It took a bit of effort to figure out that the native arg type (e.g
> >> "int" here) being NULL is used to indicate a probe with zero args. You
> >> should probably note that too :)
> >
> > Well, no... NULL as translated type (see above) means that no translation is
> > needed. No values other than the name (see exec-success above) means there are
> > no arguments and that is simply because the 2nd value in the struct is 0.
>
> Really? It looks to me like you fall out of that loop due to
>
> >> > + if (arg->argdesc.native == NULL)
> >> > + break;
>
> i.e. due to the native type being NULL. What am I missing?
Oh yes, duh, you are right. I forgot that the ordinal argument index actually
is not useful because 0 obviously means the first argument. Thanks for
correcting me.
More information about the DTrace-devel
mailing list