svn commit: r233552 - in head/sys: cddl/dev/sdt kern sys

Ryan Stone rysto32 at gmail.com
Wed Mar 28 17:21:37 UTC 2012


On Tue, Mar 27, 2012 at 6:27 PM, Alexander Leidinger
<Alexander at 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

>>   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.


More information about the svn-src-all mailing list