Thursday, December 28, 2006

The era of DTrace

The kernel debug printf thread discussed recently on opensolaris-code forum raised interesting things. Inspired by Mike Shapiro mail I started to rework all my DEBUG cmn_err() in the Bluetooth prototype into DTRACE_PROBEn() calls. At some point I realized that there is no need for DTRACE_PROBEn() calls at all. Exactly like Mike suggested - all the necessary data processing can and should be done externally in the accompanying D-script. I have to admit it was quite a revelation for me. I think only now I start to comprehend the real power of DTrace and I am sure there will be more plesant surprises on the way.

So, good bye cmn_err() - you served me well, but it is a new era of DTrace !

Technorati Tags: , ,

No comments: