On Wed, 27 Dec 2006, Garrett D'Amore wrote:
[ ... ]
A better way, IMO, would be to create a new global symbol, "_debug" or
somesuch, that is an integer providing the value. This could be
overridden using the "normal" methods, and would also avoid any
compatibility issues in extending modlinkage.
How about a "dprintf DTrace provider" ? I'm dreaming of an interface like
this:
Use DTRACE_DPRINTF(level, ...) in your sourcecode, and enable it via
probes like:
dprintf:mymodule:tracedfunc: /level >= xx/ { }
Can this be done ? Don't care whether the above gives me the debug
messages in syslog or on the dtrace output. I just want the dynamic
level-based enabling.
FrankH.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code