HOWTO in wiki: adding custom dtrace probes in the kernel
Roman Divacky
rdivacky at freebsd.org
Mon Dec 1 14:43:46 PST 2008
On Mon, Dec 01, 2008 at 06:50:43PM +0100, Dag-Erling Sm??rgrav wrote:
> "Marius N??nnerich" <marius at nuenneri.ch> writes:
> > Tim Kientzle <kientzle at freebsd.org> wrote:
> > > Seems that SDT_PROBE() should be using C99s "variadic macro"
> > > feature.
> > Is the kernel compiled in C99 mode?
>
> No, but it is compiled using a compiler that supports variadic macros
> and has for many years (even before C99), and variadic macros are
> already used in many places, including GEOM, ZFS and WITNESS.
are you sure? I am seeing -std=c99 in the kernel build. check
sys/conf/kern.pre.mk. it has been introduced more than 2 years
ago in rev 1.75 of kern.pre.mk if I read it correctly.
roman
More information about the freebsd-current
mailing list