Hi Robert, This is exactly what I had in mind with the DTrace header generator script I posted awhile ago:
http://www.opensolaris.org/jive/thread.jspa?messageID=132638 The intended use is for developers to check this file into their own project and make whatever modifications are necessary. At some point, I'd like to put this back to ON. Adam On Mon, Mar 03, 2008 at 11:43:03AM -0600, Robert Lor wrote: > I'd like to prepend TRACE_ to the macro names generated by dtrace -h. > For example, change > POSTGRESQL_LWLOCK_ACQUIRE(arg0, arg1) to > TRACE_POSTGRESQL_LWLOCK_ACQUIRE(arg0, arg1) and still keep postgresql as > the provider name. The reason for doing this is to make it clear that > the macros are used for (D)tracing. In this particular case, without > TRACE_, it appears like the macro is used for acquiring locks. > > I tested this out on both Solaris and Mac OS X Leopard, and it seems to > work just fine. Is this safe to do? Any potential problems I'm not aware of? > > It would be nice if this can be done by specifying the prefix in the .d > file or through the dtrace program. > > Regards, > -Robert > > > _______________________________________________ > dtrace-discuss mailing list > [email protected] -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl _______________________________________________ dtrace-discuss mailing list [email protected]
