Skip to content

Instantly share code, notes, and snippets.

@wkz
Created January 28, 2016 23:43
Show Gist options
  • Save wkz/151f171c8ca733033677 to your computer and use it in GitHub Desktop.
Save wkz/151f171c8ca733033677 to your computer and use it in GitHub Desktop.
wkz@wkz-box:~$ cat test.ply
kprobe:SyS_read {
/* on x86_64, di contains first argument to read, the fd */
fds[pid(), execname(), reg("di")] += 1
}
wkz@wkz-box:~$ sudo ply test.ply
[sudo] password for wkz:
^C
fds:
[ 2315, xmobar , 11 ] 3
[ 2415, AudioThread , 334 ] 55
[ 2168, gdbus , 6 ] 26
[ 2315, xmobar , 8 ] 6
[ 801, thermald , 9 ] 1
[ 2182, ibus-ui-gtk3 , 4 ] 2
[ 2219, gdbus , 6 ] 12
[ 7793, Chrome_ChildIOT , 20 ] 2
[ 19695, Chrome_ChildIOT , 20 ] 2
[ 12759, threaded-ml , 7 ] 8
[ 2648, alsa-sink-VT202 , 27 ] 113
[ 21738, spotify , 5 ] 41
[ 2206, xmobar , 7 ] 6
[ 779, gmain , 4 ] 5
[ 2206, xmobar , 8 ] 4
[ 2355, chromium-browse , 21 ] 48
[ 2206, xmobar , 11 ] 2
[ 2645, pulseaudio , 29 ] 161
[ 17861, Chrome_ChildIOT , 20 ] 2
[ 15035, Chrome_ChildIOT , 20 ] 2
[ 2457, chromium-browse , 10 ] 1
[ 2315, xmobar , 14 ] 1
[ 21957, threaded-ml , 150 ] 14
[ 15304, AudioOutputDevi , 34 ] 55
[ 1102, Xorg , 16 ] 57
[ 1562, rtkit-daemon , 5 ] 1
[ 2165, ibus-daemon , 3 ] 18
[ 2216, ibus-engine-sim , 3 ] 4
[ 17543, Chrome_ChildIOT , 20 ] 2
[ 21740, Network Thread , 14 ] 2
[ 2240, gdbus , 9 ] 12
[ 2315, xmobar , 13 ] 2
[ 2196, gdbus , 7 ] 3
[ 12756, qemu-system-arm , 5 ] 236
[ 31139, threaded-ml , 237 ] 413
[ 779, gmain , 7 ] 2
[ 2237, gnome-terminal- , 5 ] 34
[ 2645, pulseaudio , 5 ] 557
[ 2237, gnome-terminal- , 32 ] 66
[ 15387, sh , 4 ] 1
[ 15386, sh , 4 ] 1
[ 2415, AudioThread , 229 ] 191
wkz@wkz-box:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment