On 04/ 7/10 06:08 PM, Nicolas Williams wrote:
On Wed, Apr 07, 2010 at 05:08:07PM +0200, Mark Phalan wrote:
I'm working on a set of USDT probes and need to expose fairly complex
data in a reasonable way. I'd like to build up some compound structures
but dtrace doesn't seem to like translating them :(
The PID provider and USDT do not give you nice syntactic sugar for
handling user-land data. In DTrace probe context all you can do is
copyin and interpret as necessary. It's annoying. In theory the D
compiler could generate the necessary DOF code by consuming
CTF/DWARF/STABS from the relevant user-land programs and objects; in
practice that's a very difficult thing to pull off (this is the standard
answer, and I believe it).
But this isn't about user-land data. The structs I'm talking about are
dtrace native structs defined in the d script. In the example I gave I
wasn't even tracing a program - it was pure d. CTF data doesn't come
into it...
-M
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org