On Wed, Oct 28, 2009 at 06:55:28PM +0000, Joel Reymont wrote:
> I have a script where I can freely reference struct nameidata*, struct  
> vnode*, etc. on Snow Leopard.
> 
> How does DTrace know about these data types? I understand things like
> 
> #pragma D depends_on library darwin.d
> 
> where darwin.d has typedefs.
> 
> I can't find definitions of nameidata and vnode in any D scripts,  
> though. How does it work?

On Solaris these come from CTF data embedded in the ELF files that make
up the kernel and loadable modules.  The CTF data comes from ctfconvert
and other build utilities, which in turn get the data from the .os
originally output by the compilers.

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

Reply via email to