Keith McGuigan
2007-Aug-13 15:30 UTC
[dtrace-discuss] #pragma declaration in USDT probe description files
Hello, When creating USDT probes in my application, I''ve been using the #pragma directives in the provider declaration file to set the stability levels of the probes. Something like this: #pragma D attributes Evolving/Evolving/Common provider p provider #pragma D attributes Private/Private/Unknown provider p module #pragma D attributes Private/Private/Unknown provider p function #pragma D attributes Evolving/Evolving/Common provider p name #pragma D attributes Evolving/Evolving/Common provider p args I don''t remember where I got this from (I think I just copied it from an example), but I was wondering if anyone could direct me to where this is documented. I didn''t see it in the Solaris Dynamic Tracing Guide on docs.sun.com. Is there another (or better) document I should be using? Thanks for any help. -- - Keith
Adam Leventhal
2007-Aug-13 16:34 UTC
[dtrace-discuss] #pragma declaration in USDT probe description files
Hi Keith, It''s right there in the Solaris Dynamic Tracing Guide (Chapter 34 Statically Defined Tracing for User Applications). Adam On Mon, Aug 13, 2007 at 11:30:43AM -0400, Keith McGuigan wrote:> Hello, > > When creating USDT probes in my application, I''ve been using the #pragma > directives in the provider declaration file to set the stability levels of the > probes. Something like this: > > #pragma D attributes Evolving/Evolving/Common provider p provider > #pragma D attributes Private/Private/Unknown provider p module > #pragma D attributes Private/Private/Unknown provider p function > #pragma D attributes Evolving/Evolving/Common provider p name > #pragma D attributes Evolving/Evolving/Common provider p args > > I don''t remember where I got this from (I think I just copied it from an > example), but I was wondering if anyone could direct me to where this is > documented. I didn''t see it in the Solaris Dynamic Tracing Guide on > docs.sun.com. Is there another (or better) document I should be using? > > Thanks for any help. > > -- > - Keith > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl