Qiang Liu
2006-Mar-23 19:52 UTC
[dtrace-discuss] DTRACE_PROBE2() how to use it in the device driver code
Gurus, I noticed in OpenSolaris kernel code some drivers use DTRACE_PROBE2() in the driver code, I wonder if there is any document to tell how to use it. Can I use DTRACE_PROBE2() to replace cmn_err()? Thanks john This message posted from opensolaris.org
Jonathan Adams
2006-Mar-23 20:42 UTC
[dtrace-discuss] DTRACE_PROBE2() how to use it in the device driver code
On Thu, Mar 23, 2006 at 11:52:15AM -0800, Qiang Liu wrote:> Gurus, > > I noticed in OpenSolaris kernel code some drivers use DTRACE_PROBE2() > in the driver code, I wonder if there is any document to tell how to > use it. Can I use DTRACE_PROBE2() to replace cmn_err()?Look at the "sdt Provider" chapter in the Solaris Dynamic Tracing Guide. Currently, the URL is: http://docs.sun.com/app/docs/doc/817-6223/6mlkidlkd?a=view Near the end of the page is an explanation of how to insert the probes into your device driver. (unfortunately, these seem to change on a semi-random basis, so the URL may only be good for a few days) Cheers, - jonathan> Thanks > john > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Jonathan Adams, Solaris Kernel Development
Qiang Liu
2006-Mar-23 22:29 UTC
[dtrace-discuss] Re: DTRACE_PROBE2() how to use it in the device driver code
Thanks alot, it seems like I can get rid of the cmn_err/printf in my driver code. BTW, is there any plan to support DTRACE back in s8/s9? This message posted from opensolaris.org
Jonathan Adams
2006-Mar-23 22:46 UTC
[dtrace-discuss] Re: DTRACE_PROBE2() how to use it in the device driver code
On Thu, Mar 23, 2006 at 02:29:02PM -0800, Qiang Liu wrote:> Thanks alot, it seems like I can get rid of the cmn_err/printf in my > driver code.<nod>> BTW, is there any plan to support DTRACE back in s8/s9?No; it requires infrastructure which is only in Solaris 10. Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development
Apparently Analagous Threads
- printf type functionality from kernel sdt probes
- [PATCH] Optimize silk_warped_autocorrelation_FIX() for ARM NEON
- [PATCH] Optimize silk_warped_autocorrelation_FIX() for ARM NEON
- [PATCH] Optimize silk_warped_autocorrelation_FIX() for ARM NEON
- [PATCH] Optimize silk_warped_autocorrelation_FIX() for ARM NEON