From owner-freebsd-current@FreeBSD.ORG Fri Nov 28 19:57:08 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 3C2BF1065674; Fri, 28 Nov 2008 19:57:08 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 10F148FC13; Fri, 28 Nov 2008 19:57:08 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.178] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mASJv7tv081869; Fri, 28 Nov 2008 11:57:07 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <49304D0E.3030201@freebsd.org> Date: Fri, 28 Nov 2008 11:57:02 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> <20081128171243.18141hd28pf4ve00@webmail.leidinger.net> In-Reply-To: <20081128171243.18141hd28pf4ve00@webmail.leidinger.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 28 Nov 2008 19:57:08 -0000 >> 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. Tim