On Thu, Oct 30, 2008 at 05:28:35PM -0500, Danhua Shao wrote:
> Hi,
> 
> I am adding DTrace probes within NFS v3 client.  In my current 
> implementation, I use some tsd_*() functions and kmem_zalloc() function. 
> These functions might be heavy and affect the performance.  I want to 
> call this function only when DTrace is running or the DTrace probes are 
> enable. So is there a way to check  DTrace is running or DTrace probe is 
> enabled?

What you really want is kernel-mode IS_ENABLED() probes.  Unfortunately,
those have not been implemented yet.

Cheers,
- jonathan

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

Reply via email to