Hey Mike,

Are you asking if you can programmatically control DTrace? There's a C
API (that you can certainly invoke from C++), but it's private and not
stable. intrstat and plockstat are good example whose source code you
can find here:

  http://www.illumos.org/projects/illumos-gate/repository/show/usr/src/cmd

To interact with DTrace in a stable way, I'd suggest you spawn a
dtrace(1M) child process, format the output in a way that's conducive
to the parsing you need to do.

Adam

On Wed, Nov 17, 2010 at 11:52 AM, Mike DeMarco <mikej...@yahoo.com> wrote:
> Can Dtrace providers be enabled and data collected from within a C++ program?
> --
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss@opensolaris.org
>



-- 
Adam Leventhal, Delphix                        http://dtrace.org/blogs/ahl
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to