[dtrace-discuss] Leopard DTrace source

Steve Peters
Tue, 18 Dec 2007 16:27:39 -0000

On Dec 18, 2007, at 12:48 AM, James McIlree wrote:

> 	The darwin equivalent of "uts" is called "xnu", and is
available at:
>
> 	http://www.opensource.apple.com/darwinsource/10.5/xnu-1228/

A quick grep picks out the faces in the xnu crowd ;-)

$ grep -l -r "CDDL HEADER START" .
./bsd/dev/dtrace/dtrace.c
./bsd/dev/dtrace/dtrace_subr.c
./bsd/dev/dtrace/fasttrap.c
./bsd/dev/dtrace/fbt.c
./bsd/dev/dtrace/lockstat.c
./bsd/dev/dtrace/profile_prvd.c
./bsd/dev/dtrace/sdt.c
./bsd/dev/dtrace/sdt_subr.c
./bsd/dev/dtrace/systrace.c
./bsd/dev/dtrace/systrace.h
./bsd/dev/i386/dis_tables.c
./bsd/dev/i386/dtrace_subr_x86.c
./bsd/dev/i386/fasttrap_isa.c
./bsd/dev/i386/fasttrap_regset.h
./bsd/dev/i386/fbt_x86.c
./bsd/dev/i386/instr_size.c
./bsd/dev/i386/sdt_x86.c
./bsd/dev/ppc/dtrace_subr_ppc.c
./bsd/dev/ppc/fasttrap_isa.c
./bsd/dev/ppc/fbt_ppc.c
./bsd/dev/ppc/sdt_ppc.c
./bsd/i386/dis_tables.h
./bsd/i386/fasttrap_isa.h
./bsd/ppc/fasttrap_isa.h
./bsd/sys/dtrace.h
./bsd/sys/dtrace_impl.h
./bsd/sys/fasttrap.h
./bsd/sys/fasttrap_impl.h
./bsd/sys/lockstat.h
./bsd/sys/sdt.h
./bsd/sys/sdt_impl.h
./osfmk/mach/i386/sdt_isa.h
./osfmk/mach/machine/sdt.h
./osfmk/mach/ppc/sdt_isa.h
./osfmk/mach/sdt.h

And this one shows where worlds collide :-) :-)
$ grep -l -r "CONFIG_DTRACE" .
./bsd/conf/MASTER
./bsd/dev/dtrace/dtrace_glue.c
./bsd/dev/i386/systemcalls.c
./bsd/dev/ppc/systemcalls.c
./bsd/kern/bsd_init.c
./bsd/kern/kern_exec.c
./bsd/kern/kern_exit.c
./bsd/kern/kern_fork.c
./bsd/sys/lockstat.h
./bsd/sys/proc_internal.h
./bsd/sys/user.h
./iokit/conf/MASTER
./libkern/conf/MASTER
./libsa/conf/MASTER
./osfmk/conf/MASTER
./osfmk/i386/bsd_i386.c
./osfmk/i386/genassym.c
./osfmk/i386/i386_lock.s
./osfmk/i386/locks_i386.c
./osfmk/i386/loose_ends.c
./osfmk/i386/pmap.c
./osfmk/i386/thread.h
./osfmk/i386/trap.c
./osfmk/kern/clock.c
./osfmk/kern/clock.h
./osfmk/kern/locks.c
./osfmk/kern/thread.c
./osfmk/kern/thread.h
./osfmk/kern/timer_call.c
./osfmk/mach/machine/sdt.h
./osfmk/ppc/genassym.c
./osfmk/ppc/hw_lock.s
./osfmk/ppc/interrupt.c
./osfmk/ppc/locks_ppc.c
./osfmk/ppc/pmap.c
./osfmk/ppc/trap.c
./pexpert/conf/MASTER
./pexpert/i386/pe_interrupt.c
./security/conf/MASTER

SCP
--
Steve Peters
scp at mac.com