[dtrace-discuss] fbt probes creation issue

2008-10-23 Thread Aubrey Li
Hi list,

From the fbt driver, it's easy to understand the fbt probes are
created after fbt module
is loaded, fbt_provide_module will be called when a module is loaded and create
the fbt probes for all the functions.

But how are the fbt probes created for the modules which are loaded  before fbt
module is loaded?

There must be some magic I missed.
Could you please shed some light on me?

Thanks,
-Aubrey
___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


Re: [dtrace-discuss] fbt probes creation issue

2008-10-23 Thread Adam Leventhal
On Oct 23, 2008, at 7:22 AM, Aubrey Li wrote:
 But how are the fbt probes created for the modules which are loaded   
 before fbt
 module is loaded?

It happens in the call to dtrace_open() which calls  
dtrace_probe_provide().
This iterates over all providers and calls its dtps_provide_module  
callback
for every module.

Adam

--
Adam Leventhal, Fishworkshttp://blogs.sun.com/ahl

___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org