Bryan Cantrill wrote: > On Wed, Sep 26, 2007 at 03:01:37PM -0700, Greg wrote: >> I'm interested to know if there's any programmatic interface to DTrace >> so an application could control dtrace probes and receive the raw data >> in a form it could easily use? > > There is a such an interface, with two language bindings: an undocumented > (but well-established) C interface (libdtrace), and a documented JNI interface > (see http://www.opensolaris.org/os/project/dtrace-chime/java_dtrace_api/). > If you're interested in the former, consult the source for either > dtrace(1M) (usr/src/cmd/dtrace/dtrace.c) or a simpler consumer like > intrstat(1M) (usr/src/cmd/intrstat/intrstat.c) -- with our apologies for > the fact that it isn't documented.
Hi Bryan, How stable is libdtrace? James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org