From owner-freebsd-current@FreeBSD.ORG Sat Nov 29 17:45:34 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 0B834106567E; Sat, 29 Nov 2008 17:45:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id A6D128FC1D; Sat, 29 Nov 2008 17:45:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2CD6C.dip.t-dialin.net [217.226.205.108]) by redbull.bpaserver.net (Postfix) with ESMTP id 04AB82E0B5; Sat, 29 Nov 2008 18:45:28 +0100 (CET) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 493582A55; Sat, 29 Nov 2008 18:45:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227980724; bh=gVXxtjg8cOp6zJYnytu/HAEe3DdmuU6K5 d3eeb9LiB4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To: References:Mime-Version:Content-Type:Content-Transfer-Encoding; b=tUlfRN6khh7Ghuq2WDygkRb1ZUW4yKnocIOoEyJQYuEXNaQLtmE+HUhryNJyC64F7 KP4iXpIWkSndTtwg+/mkrwLEhvQI5hN5jskDjHfM+c54Q/Q5y677ok6IcLDB/fnR8t0 pAszAU9foqvVVlACowpGfhFXztjPu1UQjGqJWMSYguM3blycQ1uFKEkgcrss7LAKQKO P6vCBNbwjBun0+UY+n+4C1UJbb7HlhvCU0bS6XspKyYeg5Co36C1pUKxx0kMIEyU2iZ IS1bcpMPnosltWZTZ6fX76BSeoQA8A20UhUPZEVv3DFe8239I+22A0LcCtzjFb0I/hC x4zfzykpQ== Date: Sat, 29 Nov 2008 18:45:29 +0100 From: Alexander Leidinger To: Tim Kientzle Message-ID: <20081129184529.5ebcb1c5@deskjail> In-Reply-To: <49304D0E.3030201@freebsd.org> References: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> <20081128171243.18141hd28pf4ve00@webmail.leidinger.net> <49304D0E.3030201@freebsd.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 04AB82E0B5.2A7DC X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-current@freebsd.org, Ivan Voras 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: Sat, 29 Nov 2008 17:45:34 -0000 Quoting Tim Kientzle (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