From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 20 07:43:13 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 86DE9106568F for ; Thu, 20 Aug 2009 07:43:13 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id D49E08FC6E for ; Thu, 20 Aug 2009 07:43:12 +0000 (UTC) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n7K7hAPp041188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 20 Aug 2009 17:13:10 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Alexander Leidinger Date: Thu, 20 Aug 2009 17:13:07 +0930 User-Agent: KMail/1.9.10 References: <200908192331.34507.doconnor@gsoft.com.au> <20090820081740.436656fu6d4fxoso@webmail.leidinger.net> In-Reply-To: <20090820081740.436656fu6d4fxoso@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4089526.Djy7DDgXFa"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200908201713.08368.doconnor@gsoft.com.au> X-Spam-Score: -3.599 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 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: Thu, 20 Aug 2009 07:43:13 -0000 --nextPart4089526.Djy7DDgXFa Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D"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"); =2E.. static void gsio_intr(void *varg) { =2E.. istat =3D g_lcr_inl(sc, PLX_INTCSR); =2E.. SDT_PROBE(fbt, gsio, gsio_intr, test, istat, 0, 0, 0, 0); > In > http://svn.freebsd.org/viewvc/base/user/netchild/linuxulator-dtrace/s >rc/sys/compat/linux/linux_emul.c?revision=3D185383&view=3Dmarkup I have > code which worked at least at some point in time when loaded as a > KLD. Hmm OK, this is on a 7.x system which doesn't have any SDT* stuff in the=20 linuxlator (except for FBT probes) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart4089526.Djy7DDgXFa Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBKjP6M5ZPcIHs/zowRAoRpAJ9kJj1AQeB+1eFRpBbD3tvIxhtDvQCgj8Op ypOO/ERNThpmPrd62dZpvJE= =ViiU -----END PGP SIGNATURE----- --nextPart4089526.Djy7DDgXFa--