On Tue, Sep 02, 2008 at 03:47:25PM -0700, Susan Scheufele wrote:
> Hello dtrace gurus,
> 
> Is it possible to put DTRACE_PROBEs in a driver attach routine, and 
> expect to see them show up when running a dtrace script to trigger them 
> (which incidentally causes the driver to be modload-ed)?
> 
> I'm trying to change all of the funky con_log() calls in the mega_sas 
> driver to use DTRACE_PROBEs, but I'm wondering if this will really work 
> for attach.  I do see the probes from other non-attach mega_sas function 
> calls after the driver attaches, but not the probes from during 
> megasas_attach. Maybe I need to retain the logging code for the 
> attach/detach routines?

What version of Solaris is this?

I believe they should show up;  dtrace gets notification very early on (before
_init is run)[1], which should cause the sdt probes to show up.

What happens if you enable fbt::megasas_attach:entry?

Cheers,
- jonathan

[1] Unfortunately, an old linker bug makes instrumenting _init and _fini
impossible at the moment.
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to