[dtrace-discuss] Accessing variables in shared libraries

Jon Haslam Jonathan.Haslam at Sun.COM
Mon Jul 2 15:33:04 PDT 2007


Hi Seth,

>>Oh, I see what you mean.  I've no idea if DTrace supports references to
>>non-function symbols in user-land; I suspect it does not.
>>    
>>
>
>   That would be a bummer, but would be fine, if only the error message were 
>better (and yes, I can file a bug on that if n one is aware of a preexisting, 
>similar one -- a bug query didn't reveal anything close though, but we all 
>know how efficient the full text search is).
>  
>

We don't have the user-land equivalent of the "`" kernel scoping
operator. Currently you have to find the address and then use
that in your copyin(). I'm sure you don't need any references on howto
but a previous thread can be found at:

http://www.opensolaris.org/jive/message.jspa?messageID=80703

Off the top of my head I don't know whether or not an RFE exists for
this. It sure needs to though as it gets requested quite a lot.

Jon.


More information about the dtrace-discuss mailing list