DTracers, We''ve been encouraging application developers to include DTrace probes in their applications using USDT [1][2], and the response has been great. A common problem, though, has been that it''s troublesome to include probes in code that also needs to be built on systems that don''t have DTrace support. A key step for USDT is running dtrace(1M) with the -h flag to process a D file with provider and probe definitions and produce a header file with the appropriate macros to be invoked at probe sites. Ideally projects should _check in_ the D file and _generate_ the header file. I''ve attached a small perl script that can be used to accomplish this step on systems lacking DTrace support. I''m releasing it under a BSD license so that projects can include it in their repository (and potentially modify it) without concerns about license incompatibility. This is my first whack at this; Feel free to send me comments or questions. My plan is either to integrate this into OpenSolaris or host it on OpenSolaris.org under the DTrace community. Adam [1] http://blogs.sun.com/ahl/entry/user_land_tracing_gets_better [2] http://blogs.sun.com/barts/entry/putting_user_defined_dtrace_probe -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl -------------- next part -------------- A non-text attachment was scrubbed... Name: dheadgen.pl Type: application/x-perl Size: 7156 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070624/3bc662e2/attachment.pl>