Re: [dtrace-discuss] where do kernel data types come from?

2009-10-28 Thread Nicolas Williams
On Wed, Oct 28, 2009 at 06:55:28PM +, 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

Re: [dtrace-discuss] where do kernel data types come from?

2009-10-28 Thread Shantonu Sen
Same on Mac OS X. In Snow Leopard, the final CTF data is linked into the kernel file. In previous versions of Mac OS X, the CTF data was in a separate mach_kernel.ctfsys file $ size -arch x86_64 -l /mach_kernel | grep -A 2 __CTF Segment __CTF: 0 (vmaddr 0x0 fileoff 5320728) Section

Re: [dtrace-discuss] where do kernel data types come from?

2009-10-28 Thread Joel Reymont
On Oct 28, 2009, at 8:00 PM, Shantonu Sen wrote: Same on Mac OS X. In Snow Leopard, the final CTF data is linked into the kernel file. In previous versions of Mac OS X, the CTF data was in a separate mach_kernel.ctfsys file I didn't know what CTF was but this page provided a good summary: