Skip site navigation (1) Skip section navigation (2)

DTrace for FreeBSD.

The following table summarizes the changes required to add the first stage of DTrace functionality to FreeBSD-current (FreeBSD-8)

There are two ways to look at the diffs. In the second column, the diffs are grouped by area of functionality in a text file. In the last column there is a link to the p4 browser which will show a colourised diff which is probably easier to digest if you are just looking on a file-by-file basis.

For reference, the DTrace user guide is available online here or you can download the PDF from here.

File or DirectoryGroup DiffReasonLinkBranched From
src/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/exception.lstunassigned(Not Specified)ChangedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/scripts/dtest.plunassigned(Not Specified)ChangedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.enabled2.kshunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh.outunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpvunassigned--ditto--New directory 
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/Makefileunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdtunassigned--ditto--New directory 
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/tst.basic.kshunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/tst.hvmenable.kshunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/tst.memenable.kshunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/tst.schedargs.kshunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/tst.schedenable.kshunassigned--ditto--AddedBranched
src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.cunassigned(Not Specified)ChangedBranched
src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.cunassigned(Not Specified)ChangedBranched
src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_program.cunassigned(Not Specified)ChangedBranched
src/sys/amd64/amd64/exception.Sunassigned(Not Specified)ChangedBranched
src/sys/amd64/amd64/local_apic.cunassigned(Not Specified)ChangedBranched
src/sys/amd64/amd64/trap.cunassigned(Not Specified)ChangedBranched
src/sys/amd64/conf/GENERICgenericAdd the DTrace kernel hooks to the GENERIC kernel.ChangedBranched
src/sys/amd64/conf/MINIMALcustomCustom kernel configuration. Ignore this.AddedBranched
src/sys/amd64/conf/YABBAcustomCustom kernel configuration. Ignore this.AddedBranched
src/sys/boot/common/boot.cunassigned(Not Specified)ChangedBranched
src/sys/boot/forth/beastie.4thunassigned(Not Specified)ChangedBranched
src/sys/cddl/compat/opensolaris/kern/opensolaris_kmem.coscompatOpenSolaris compatibility headersChangedBranched
src/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.copensolarisSource code imported from OpenSolaris. Mostly CDDL'd. Contains many changes to suit FreeBSD.ChangedBranched
src/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.copensolarisSource code imported from OpenSolaris. Mostly CDDL'd. Contains many changes to suit FreeBSD.ChangedBranched
src/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap_impl.hopensolaris--ditto--AddedBranched
src/sys/cddl/dev/fasttrapfasttrapWIP. Ignore for now.New directory 
src/sys/cddl/dev/fasttrap/fasttrap.cfasttrap--ditto--AddedBranched
src/sys/cddl/dev/lockstatunassigned--ditto--New directory 
src/sys/cddl/dev/lockstat/lockstat.cunassigned--ditto--AddedBranched
src/sys/conf/fileslockstatAdd kern_lockstat.c.ChangedBranched
src/sys/i386/conf/ONEunassigned--ditto--AddedBranched
src/sys/i386/conf/YABBAunassigned--ditto--AddedBranched
src/sys/i386/i386/exception.sunassigned(Not Specified)ChangedBranched
src/sys/i386/i386/local_apic.cunassigned(Not Specified)ChangedBranched
src/sys/i386/i386/trap.cunassigned(Not Specified)ChangedBranched
src/sys/i386/isa/clock.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_exec.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_exit.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_fork.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_mutex.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_proc.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_rwlock.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_sig.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_sx.cunassigned(Not Specified)ChangedBranched
src/sys/kern/sched_4bsd.cunassigned(Not Specified)ChangedBranched
src/sys/kern/sched_ule.cunassigned(Not Specified)ChangedBranched
src/sys/kern/kern_lockstat.cunassigned--ditto--AddedBranched
src/sys/modules/MakefilebuildAdd the DTrace modules to i386 and amd64 only (for the time being).ChangedBranched
src/sys/modules/dtrace/MakefilekdtraceThe DTrace kernel modules.ChangedBranched
src/sys/modules/cyclic_testunassigned--ditto--New directory 
src/sys/modules/cyclic_test/Makefileunassigned--ditto--AddedBranched
src/sys/netinet/sctputil.cunassigned(Not Specified)ChangedBranched
src/sys/sys/mutex.hlockstatlockstat supportChangedBranched
src/sys/sys/rwlock.hlockstatlockstat supportChangedBranched
src/sys/sys/sx.hlockstatlockstat supportChangedBranched
src/sys/sys/lockstat.hunassigned--ditto--AddedBranched
src/tools/test/libproclibproctestA minimal test program for libproc. Not much use. Probably should be moved to tools/regression and fleshed out more. Can be considered WIP or just ignored.New directory 
src/tools/test/libproc/Makefilelibproctest--ditto--AddedBranched
src/tools/test/libproc/proctest.clibproctest--ditto--AddedBranched
src/usr.bin/MakefiledwarfAdd 'dwarfdump' to the list of directories to buildChangedBranched
src/usr.bin/dwarfdumpdwarfBSD licensed 'dwarfdump' based on the BSD licensed libdwarf.New directory 
src/usr.bin/dwarfdump/Makefiledwarf--ditto--AddedBranched
src/usr.bin/dwarfdump/dwarfdump.cdwarf--ditto--AddedBranched