From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 21 12:42:09 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E966106568E for ; Fri, 21 Aug 2009 12:42:09 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6F48FC5B for ; Fri, 21 Aug 2009 12:42:08 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C5CB.dip.t-dialin.net [217.226.197.203]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 7AC438445A4; Fri, 21 Aug 2009 14:42:01 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 35C8912F73B; Fri, 21 Aug 2009 14:41:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1250858518; bh=rvnXtSywJa7hlJ95Wg9Nikwow/aZHs6UADe1z7CRQeQ=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=M4IV3bU+UsWg6oIS4hx+XZOzRJ0akEvkLQbJa7OVqESLUSfwwJlvB7rnHHvtOQUcm 1tFHgWqSqePJ4hn8ivFsgrNWrJwfCqwcJMu54Qay3jDAXzZJKANQZ7KR3iPx4of4yD F5phx9SEgbokk+UA8DXJnf7ItJlTzAjlHSBOCAaro4NrQirJJF61njKxInaUnPyO4G H8HAjE0rAWXqP3uPB9/+SVDLhaIqs+hfRRCET2yLJO7Iycj4Z/UYl0YOr6KeHXd6hZ bSrMHnIyHKuqe2dY9P5ma8bCxuTlvBr75WeBxG00VXRvCbXdm3bIshC+1bU1VQUyYQ qbjm3u2GguV3A== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n7LCfvdq044344; Fri, 21 Aug 2009 14:41:57 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 21 Aug 2009 14:41:57 +0200 Message-ID: <20090821144157.645117jxvao9rmzk@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 21 Aug 2009 14:41:57 +0200 From: Alexander Leidinger To: "Daniel O'Connor" References: <200908192331.34507.doconnor@gsoft.com.au> <20090820081740.436656fu6d4fxoso@webmail.leidinger.net> <200908201713.08368.doconnor@gsoft.com.au> In-Reply-To: <200908201713.08368.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.3.3 / FreeBSD-8.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 7AC438445A4.DC4AB X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.44, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1251463322.59472@Dfw4ddEFycCgVtoaZxG0Yw X-EBL-Spam-Status: No X-Mailman-Approved-At: Fri, 21 Aug 2009 13:43:31 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace probes & klds X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 12:42:09 -0000 Quoting Daniel O'Connor (from Thu, 20 Aug 2009 17:13:07 +0930): > On Thu, 20 Aug 2009, Alexander Leidinger wrote: >> Quoting Daniel O'Connor (from Wed, 19 Aug >> 2009 >> >> 23:31:33 +0930): >> > Content-Type: text/plain; >> > charset="utf-8" >> > Content-Transfer-Encoding: quoted-printable >> > Content-Disposition: inline >> > >> > Is it possible? the handbook implies not and I can't get it to >> > work, but i could be doing it wrong.. >> > >> > I get fbt traces listed for KLDs (I get new entries for each load >> > of the KLD which seems like a potential problem) but I can't >> > specify an SDT_PROBE and have it work. >> >> Can you show us some example code? > > /* Recycle fbt as SDT_PROVIDER_DEFINE is said not to work */ > SDT_PROBE_DEFINE(fbt, gsio, gsio_intr, test); > SDT_PROBE_ARGTYPE(fbt, gsio, gsio_intr, test, 0, "int"); > SDT_PROBE_ARGTYPE(fbt, gsio, gsio_intr, test, 1, "int"); I don't think you can define a fbt probe by hand. You can define a provider on your own via SDT_PROVIDER_DEFINE (in only one place/file), and then use this provider instead of fbt above. Let's assume you defined a gsio provider, then the SDT_PROBE_DEFINE could be SDT_PROBE_DEFINE(gsio, , gsio_intr, test); If there's only one file, it does not make much sense to add an unique part of the name of the file, but if you have multiple files it can be helpful. But this is just an example, for example in GEOM it would make sense to name the provider "geom", and instead of the file name use the module name, e.g. mirror, raid3, core/whatever, ... instead. Bye, Alexander. -- Fry: Where's Captain Bender? Off catastrophizing some other planet? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137