Re: [dtrace-discuss] Dtrace providers and C, C++

2010-11-18 Thread Mike DeMarco
I was hoping to do something as simple as link in the dtrace library, include the headers and then use a c call to invoke a provider filling data structures. I will take a look at the lockstat code you mentioned maybe gleam an idea or two from it.. Thanks -- This message posted from

Re: [dtrace-discuss] Dtrace providers and C, C++

2010-11-18 Thread Mike DeMarco
Kudos to whoever wrote the header files. Very well documented. I will research but looks like dtrace_probe() will do what I want.. I remember seeing a blurb somewhere saying not to trust the library as it could and will change with growth. Is this true? -- This message posted from

Re: [dtrace-discuss] Dtrace providers and C, C++

2010-11-18 Thread Angelo Rajadurai
Hi Mike: James is right, this is private interface. You are on your own as far as stability is concerned. But if you are still interested I have provided some step by step example of using the C API in my dtrace hands on lab. See http://dtracehol.com/#Exercise_15 -Angelo On Nov 18, 2010, at

Re: [dtrace-discuss] Dtrace providers and C, C++

2010-11-18 Thread Mike DeMarco
Hi Mike: James is right, this is private interface. You are on your own as far as stability is concerned. But if you are still interested I have provided some step by step example of using the C API in my dtrace hands on lab. See http://dtracehol.com/#Exercise_15 -Angelo Excellent!!!

Re: [dtrace-discuss] Dtrace providers and C, C++

2010-11-17 Thread Adam Leventhal
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: