Skip to content

Instantly share code, notes, and snippets.

View danmack's full-sized avatar

Dan Mack danmack

View GitHub Profile

Keybase proof

I hereby claim:

  • I am danmack on github.
  • I am danmack (https://keybase.io/danmack) on keybase.
  • I have a public key ASCRfIZBX0yXTwJjqwj4dCoeoYq2RnPDNGlYgSKpsB_X-Ao

To claim this, I am signing this object:

[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
PS /root> Get-Process
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
0 0 0 1 0.005 24988 988 agetty
0 0 0
@danmack
danmack / gist:a7570a3822525d70d83f4aa07bb4dbd7
Created August 19, 2016 22:59
dtrace powershell get-process on triton/lxc
root@171137a2-b0ef-e9ff-8b63-cb31c060a4fa:~# uname -a ; /native/usr/sbin/dtrace -n lx-syscall:::entry'/progenyof($target)/{@[probefunc] = count()}' -c "powershell Get-Process > /dev/null"
Linux 171137a2-b0ef-e9ff-8b63-cb31c060a4fa 4.3.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
dtrace: description 'lx-syscall:::entry' matched 676 probes
dtrace: pid 26066 has exited
arch_prctl 1
exit_group 1
mincore 1
mlock 1
set_tid_address 1