On 6 Aug 2010, at 16:46, Adam Leventhal wrote:

> Take a look at these:
> 
>  http://blogs.sun.com/ahl/entry/user_land_tracing_gets_better
>  http://blogs.sun.com/ahl/entry/pid_provider_exposed
> 
> In short, 'dtrace -G' processes a provider description (.d file) and the 
> compiled object files to generate a new object file (ELF) that contains a DOF 
> section. When the program is linked, the DOF gets stuck into the final binary

Yes, exactly, but our ld (GNU) seems to remove the .SUWN_dof section.. I'm 
writing code to add the section using libelf. Also, our ld ignores SUNW_dof 
section types, so I'm using SHT_PROGBITS as an interim solution (drti.c needs 
changes for this to work).

Regards,
--
Rui Paulo


_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to