svn commit: r233552 - in head/sys: cddl/dev/sdt kern sys
Alexander Leidinger
Alexander at Leidinger.net
Tue Mar 27 22:37:29 UTC 2012
On Tue, 27 Mar 2012 15:07:43 +0000 (UTC) Ryan Stone
<rstone at FreeBSD.org> wrote:
> Author: rstone
> Date: Tue Mar 27 15:07:43 2012
> New Revision: 233552
> URL: http://svn.freebsd.org/changeset/base/233552
>
> Log:
> Instead of only iterating over the set of known SDT probes when
> sdt.ko is loaded and unloaded, also have sdt.ko register callbacks
> with kern_sdt.c that will be called when a newly loaded KLD module
> adds more probes or a module with probes is unloaded.
Great!
Is this automatic, or do I need to do something in the newly loaded KLD?
> 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.
Bye,
Alexander.
--
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the svn-src-head
mailing list