Date: Wed, 28 Mar 2012 13:21:35 -0400 From: Ryan Stone <rysto32@gmail.com> To: Alexander Leidinger <Alexander@leidinger.net> Cc: svn-src-head@freebsd.org, Ryan Stone <rstone@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r233552 - in head/sys: cddl/dev/sdt kern sys Message-ID: <CAFMmRNwqYHJ=2KqxU_24spuLVGV4DGX_RKAs%2BB9nSrigsinCGA@mail.gmail.com> In-Reply-To: <20120328002756.0000118e@unknown> References: <201203271507.q2RF7hO2091110@svn.freebsd.org> <20120328002756.0000118e@unknown>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 27, 2012 at 6:27 PM, Alexander Leidinger <Alexander@leidinger.net> wrote: > Great! > Is this automatic, or do I need to do something in the newly loaded KLD? Nothing special. You can follow exactly the same set of steps as for adding probes to the kernel itself: http://wiki.freebsd.org/DTrace/HowToAddSDTProbes >> =A0 This makes it possible to create SDT probes in KLD modules, >> although there are still two caveats: first, any SDT probes in a KLD >> module must be part of a DTrace provider that is defined in that >> module. > > To make sure I understand it correctly: > If I have the provider "linuxulator", all probes for this provider > need to be within the KLD. No other KLD is allowed to reference this > provider. To stay with the linuxulator example: if a module which > depends upon linux.ko wants to have some SDT probes, it has to use a > different provider. Exactly correct.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNwqYHJ=2KqxU_24spuLVGV4DGX_RKAs%2BB9nSrigsinCGA>