Remigiusz Modrzejewski
2008-Jul-07 23:55 UTC
[dtrace-discuss] GSoC: TclDtrace API - call for comments
Hi, I''m developing, thanks to Google Summer of Code, a Tcl binding to libdtrace. I''m about to actually start coding and want to reassure myself that the API will be enough to be of any use. I''m aware that Tcl is not a particularly popular language, but hopefully some people here can, and will want to, digest it enough to share their views. The URL of current draft is <http://dev.lrem.net/tcldtrace/wiki/CommandsList> - separate page for comments linked, though I will be reading here as well. Also I''ve noted down what I got from reading through libdtrace implementation, nothing innovative but any errors should be easily spotted by more experienced DTrace users (and developers): <http://dev.lrem.net/tcldtrace/wiki/LibDtrace> Looking forward for your thoughts on this. Kind regards, Remigiusz ''lRem'' Modrzejewski
Bryan Cantrill
2008-Jul-08 05:03 UTC
[dtrace-discuss] GSoC: TclDtrace API - call for comments
Hey lRem,> I''m developing, thanks to Google Summer of Code, a Tcl binding to libdtrace. > I''m about to actually start coding and want to reassure myself that the API > will be enough to be of any use. I''m aware that Tcl is not a particularly > popular language, but hopefully some people here can, and will want to, > digest it enough to share their views. The URL of current draft is > <http://dev.lrem.net/tcldtrace/wiki/CommandsList> - separate page for comments > linked, though I will be reading here as well. Also I''ve noted down what I > got from reading through libdtrace implementation, nothing innovative but any > errors should be easily spotted by more experienced DTrace users (and > developers): <http://dev.lrem.net/tcldtrace/wiki/LibDtrace>Very cool! As you have noted, libdtrace was never really documented -- and there are some wonky things like, say, the buffer handler. My only advice: if you haven''t already, be sure to check out the JNI interface to libdtrace, if only for its comments explaining its interactions with libdtrace. (For example, see the block comment about dtj_bufhandler() for an explanation of the buffer handler.) More information on the Java DTrace API is here: http://opensolaris.org/os/project/dtrace-chime/java_dtrace_api/ Anwyay, strong work so far -- and looking forward to seeing the finished API! - Bryan -------------------------------------------------------------------------- Bryan Cantrill, Sun Microsystems Fishworks. http://blogs.sun.com/bmc
Chris Andrews
2008-Jul-08 12:05 UTC
[dtrace-discuss] GSoC: TclDtrace API - call for comments
2008/7/8 Remigiusz Modrzejewski <lrem at sphere.pl>:> Hi, > > I''m developing, thanks to Google Summer of Code, a Tcl binding to libdtrace. > I''m about to actually start coding and want to reassure myself that the API > will be enough to be of any use. I''m aware that Tcl is not a particularly > popular language, but hopefully some people here can, and will want to, > digest it enough to share their views. The URL of current draft is > <http://dev.lrem.net/tcldtrace/wiki/CommandsList> - separate page for comments > linked, though I will be reading here as well. Also I''ve noted down what I > got from reading through libdtrace implementation, nothing innovative but any > errors should be easily spotted by more experienced DTrace users (and > developers): <http://dev.lrem.net/tcldtrace/wiki/LibDtrace>As well as the Java bindings, which are very helpfully commented, you might want to look at the libdtrace bindings I did for for Ruby: http://github.com/chrisa/ruby-dtrace/tree/master It looks like you''re doing a very similar thing to the "Consumer" API my library provides. Chris.