From owner-freebsd-current@FreeBSD.ORG Fri Nov 28 19:10:37 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 B548F10656A4 for ; Fri, 28 Nov 2008 19:10:37 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 7A2B08FC22 for ; Fri, 28 Nov 2008 19:10:37 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: by yx-out-2324.google.com with SMTP id 8so632532yxb.13 for ; Fri, 28 Nov 2008 11:10:36 -0800 (PST) Received: by 10.90.72.3 with SMTP id u3mr4584714aga.24.1227898041678; Fri, 28 Nov 2008 10:47:21 -0800 (PST) Received: by 10.90.73.15 with HTTP; Fri, 28 Nov 2008 10:47:21 -0800 (PST) Message-ID: Date: Fri, 28 Nov 2008 19:47:21 +0100 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" To: "Alexander Leidinger" In-Reply-To: <20081128172126.453467ea7w6jb5c8@webmail.leidinger.net> 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> <20081128172126.453467ea7w6jb5c8@webmail.leidinger.net> 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:10:37 -0000 On Fri, Nov 28, 2008 at 5:21 PM, Alexander Leidinger wrote: > Quoting Ivan Voras (from Fri, 28 Nov 2008 15:59:23 > +0100): > >> Can you document a bit more the construction of the probe: >> >> SDT_PROBE_DEFINE(foobar, source_file1, foo, entry); >> SDT_PROBE_ARGTYPE(foobar, source_file1, foo, entry, 0, "int"); >> SDT_PROBE_ARGTYPE(foobar, source_file1, foo, entry, 1, "const char *"); >> SDT_PROBE_DEFINE(foobar, source_file1, foo, return); >> SDT_PROBE_ARGTYPE(foobar, source_file1, foo, return, 0, "int"); >> >> What is the meaning of "source_file1" and "foo"? > > In case you reloaded the wiki page and it does not contain a reference to > GEOM, reload it again. I added GEOM as an example how the module name could > be constructed. What is the intention of adding function entry and return providers with SDT? Isn't that what FBT is for?