Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Nov 2008 18:45:29 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        freebsd-current@freebsd.org, Ivan Voras <ivoras@freebsd.org>
Subject:   Re: HOWTO in wiki: adding custom dtrace probes in the kernel
Message-ID:  <20081129184529.5ebcb1c5@deskjail>
In-Reply-To: <49304D0E.3030201@freebsd.org>
References:  <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> <ggp10c$pdt$1@ger.gmane.org> <20081128171243.18141hd28pf4ve00@webmail.leidinger.net> <49304D0E.3030201@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Tim Kientzle <kientzle@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@ about this, I just make us of what is there.

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081129184529.5ebcb1c5>