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