Skip to content

Instantly share code, notes, and snippets.

@danmack
Created August 20, 2016 00:51
Show Gist options
  • Save danmack/ad2c9b9c3a4f26345698cb692aff93be to your computer and use it in GitHub Desktop.
Save danmack/ad2c9b9c3a4f26345698cb692aff93be to your computer and use it in GitHub Desktop.
[root@olive-sdc ~]# dtrace -n entry'/progenyof($target)/{@[probefunc] = count()}' -c 'ps'
dtrace: description 'entry' matched 911 probes
PID TTY TIME CMD
45890 pts/8 0:00 bash
45941 pts/8 0:00 ps
45940 pts/8 0:00 dtrace
dtrace: pid 45941 has exited
access 1
exece 1
fcntl 1
getuid 1
ioctl 1
openat 1
rexit 1
sigpending 1
zone 1
getdents 2
getpid 2
getrlimit 2
munmap 2
sysi86 2
systeminfo 2
sysconfig 3
setcontext 4
write 4
brk 8
fstat 22
mmapobj 27
memcntl 28
resolvepath 29
lwp_cond_broadcast 30
mmap 43
read 46
stat 61
close 83
open 83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment