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

From: Roman Divacky <rdivacky_at_freebsd.org>
Date: Mon, 1 Dec 2008 23:22:48 +0100
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
Received on Mon Dec 01 2008 - 21:43:46 UTC

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