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
Post by Mike DeMarcoCan Dtrace providers be enabled and data collected from within a C++ program?
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
--
Adam Leventhal, Delphix http://dtrace.org/blogs/ahl