From owner-freebsd-current@FreeBSD.ORG Mon Dec 1 22:43:46 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ADDA106567F; Mon, 1 Dec 2008 22:43:46 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id B957F8FC14; Mon, 1 Dec 2008 22:43:45 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4C4D99CB45F; Mon, 1 Dec 2008 23:22:52 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vWsIV0Sb3SBJ; Mon, 1 Dec 2008 23:22:50 +0100 (CET) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 181A29CB524; Mon, 1 Dec 2008 23:22:50 +0100 (CET) Received: (from rdivacky@localhost) by lev.vlakno.cz (8.14.2/8.14.2/Submit) id mB1MMmFP022673; Mon, 1 Dec 2008 23:22:48 +0100 (CET) (envelope-from rdivacky) Date: Mon, 1 Dec 2008 23:22:48 +0100 From: Roman Divacky To: Dag-Erling Sm??rgrav Message-ID: <20081201222248.GA99892@freebsd.org> References: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> <20081128171243.18141hd28pf4ve00@webmail.leidinger.net> <49304D0E.3030201@freebsd.org> <86iqq3pyx8.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86iqq3pyx8.fsf@ds4.des.no> User-Agent: Mutt/1.4.2.3i Cc: Alexander Leidinger , Marius N??nnerich , Tim Kientzle , Ivan Voras , freebsd-current@freebsd.org Subject: Re: HOWTO in wiki: adding custom dtrace probes in the kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 22:43:46 -0000 On Mon, Dec 01, 2008 at 06:50:43PM +0100, Dag-Erling Sm??rgrav wrote: > "Marius N??nnerich" writes: > > Tim Kientzle 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