From owner-freebsd-current@FreeBSD.ORG Mon Dec 1 17:34:51 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 5F3DE106567E for ; Mon, 1 Dec 2008 17:34:51 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 1BB6F8FC1D for ; Mon, 1 Dec 2008 17:34:50 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: by yw-out-2324.google.com with SMTP id 9so998080ywe.13 for ; Mon, 01 Dec 2008 09:34:50 -0800 (PST) Received: by 10.90.103.13 with SMTP id a13mr5983217agc.12.1228152890036; Mon, 01 Dec 2008 09:34:50 -0800 (PST) Received: by 10.90.73.15 with HTTP; Mon, 1 Dec 2008 09:34:49 -0800 (PST) Message-ID: Date: Mon, 1 Dec 2008 18:34:49 +0100 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" To: "Tim Kientzle" In-Reply-To: <49304D0E.3030201@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> <20081128171243.18141hd28pf4ve00@webmail.leidinger.net> <49304D0E.3030201@freebsd.org> Cc: Alexander Leidinger , 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: Mon, 01 Dec 2008 17:34:51 -0000 On Fri, Nov 28, 2008 at 8:57 PM, Tim Kientzle wrote: >>> 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. Is the kernel compiled in C99 mode?