1Contents - Command Summary 2 3 The following is a list of commands found in the DTraceToolkit, along 4 with their directory location. 5 6Generally commands that end in a ".d" are DTrace scripts, and commands 7that don't are DTrace scripts wrapped in another language (eg, shell 8or Perl). See the Docs/Readme for instructions for finding their docs. 9 10DTraceToolkit/ 11 dappprof profile user and lib function usage 12 dapptrace trace user and lib function usage 13 dexplorer run a series of scripts and archive output 14 dtruss process syscall info. DTrace truss 15 dvmstat vmstat by PID/name/command 16 errinfo report syscall failures with details 17 execsnoop snoop process execution as it occurs 18 iosnoop snoop I/O events as they occur 19 iotop display top disk I/O events by process 20 opensnoop snoop file opens as they occur 21 procsystime analyse process system call times 22 rwsnoop snoop read/write events 23 rwtop display top read/write bytes by process 24 Apps/ 25 httpdstat.d realtime httpd statistics 26 nfswizard.d NFS client activity wizard 27 shellsnoop snoop live shell activity 28 weblatency.d website latency statistics 29 Cpu/ 30 cputypes.d list CPU types 31 cpuwalk.d measure which CPUs a process runs on 32 dispqlen.d dispatcher queue length by CPU 33 intbycpu.d interrupts by CPU 34 intoncpu.d interrput on-cpu usage 35 inttimes.d interrput on-cpu time total 36 loads.d print load averages 37 runocc.d run queue occupancy by CPU 38 xcallsbypid.d CPU cross calls by PID 39 Disk/ 40 bitesize.d print disk event size report 41 diskhits disk access by file offset 42 hotspot.d print disk event by location 43 iofile.d I/O wait time by filename and process 44 iofileb.d I/O bytes by filename and process 45 iopattern print disk I/O pattern 46 iopending plot number of pending disk events 47 pathopens.d pathnames successfully opened count 48 seeksize.d print disk seek size report 49 Docs/ 50 oneliners.txt DTrace oneliners 51 Extra/ 52 guess.d guessing game 53 FS/ 54 fsrw.d file system read/write event tracing 55 fspaging.d file system read/write and paging tracing 56 rfsio.d read FS I/O stats, with cache miss rate 57 rfileio.d read file I/O stats, with cache miss rate 58 vopstat vnode interface statistics 59 Kernel/ 60 cputimes print time by Kernel/Idle/Process 61 cpudists time distribution by Kernel/Idle/Process 62 cswstat.d context switch time statistics 63 dnlcps.d DNLC stats by process 64 dnlcsnoop.d snoop DNLC activity 65 dnlcstat DNLC statistics 66 kstat_types.d trace kstat reads with type info 67 modcalls.d kernel function calls by module name 68 priclass.d priority distribution by scheduling class 69 pridist.d process priority distribution 70 whatexec.d examine the type of files executed 71 Locks/ 72 lockbyproc.d lock time by process name 73 lockbydist.d lock time distribution by process name 74 Mem/ 75 anonpgpid.d anonymous memory paging info by PID on CPU 76 minfbypid.d minor faults by PID 77 minfbyproc.d minor faults by process name 78 pgpginbypid.d pages paged in by PID 79 pgpginbyproc.d pages paged in by process name 80 swapinfo.d print virtual memory info 81 vmbypid.d virtual memory stats by PID 82 vmstat.d vmstat demo using DTrace 83 vmstat-p.d vmstat -p demo using DTrace 84 xvmstat extended vmstat demo using DTrace 85 Net/ 86 connections print inbound TCP connections by process 87 icmpstat.d print ICMP statistics 88 tcpsnoop snoop TCP network packets by process 89 tcpsnoop.d snoop TCP network packets by process 90 tcpstat.d print TCP statistics 91 tcptop display top TCP network packets by process 92 tcpwdist.d simple TCP write distribution by process 93 udpstat.d print UDP statistics 94 Proc/ 95 crash.d crashed application report 96 creatbyproc.d snoop file creat() by process name 97 fddist file descriptor usage distribution 98 fileproc.d snoop files opened by process 99 kill.d snoop process signals 100 lastwords print syscalls before exit 101 mmapfiles.d mmap'd files by process 102 newproc.d snoop new processes 103 pfilestat show I/O latency break down by FD 104 pidpersec.d print new PIDs per sec 105 readbytes.d read bytes by process name 106 readdist.d read distribution by process name 107 rwbbypid.d read/write bytes by PID 108 rwbypid.d read/write calls by PID 109 rwbytype.d read/write bytes by vnode type 110 sampleproc sample processes on the CPUs 111 shortlived.d check short lived process time 112 sigdist.d signal distribution by process name 113 stacksize.d measure stack size for running threads 114 sysbypid.d system stats by PID 115 syscallbyproc.d system calls by process name 116 syscallbypid.d system calls by process ID 117 threaded.d sample multi-threaded CPU usage 118 topsysproc display top syscalls by process name 119 writebytes.d write bytes by process name 120 writedist.d write distribution by process name 121 System/ 122 sar-c.d sar -c demo using DTrace 123 syscallbysysc.d system calls by system call 124 topsyscall display top system call type 125 uname-a.d uname -a demo using DTrace 126 User/ 127 setuids.d snoop setuid calls 128 Zones/ 129 zvmstat vmstat info by zone 130 131Total: 104 scripts 132