Re: HOWTO in wiki: adding custom dtrace probes in the kernel

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Sat, 29 Nov 2008 18:45:29 +0100
Quoting Tim Kientzle <kientzle_at_freebsd.org> (Fri, 28 Nov 2008 11:57:02 -0800):

> >>  SDT_PROBE(foobar, source_file1, foo, entry, a, b, 0, 0, 0);
> >>
> >> Here: why are the last three arguments zeroes?
> > 
> > SDT_PROBE() is a macro with a fixed number of macros, so we have to  
> > fill with 0 in case we don't want to provide some data. Maybe there's  a 
> > way to provide more arguments if you do it by hand instead of using  the 
> > SDT_PROBE() macro (TODO item added in the wiki to have a look at  this, 
> > feel free to improve the wiki page).
> 
> Seems that SDT_PROBE() should be using C99s "variadic macro"
> feature.

You should talk with jb_at_ about this, I just make us of what is there.

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander _at_ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild _at_ FreeBSD.org  : PGP ID = 72077137
Received on Sat Nov 29 2008 - 16:45:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC