Skip to content

Instantly share code, notes, and snippets.

@wkz
Created January 8, 2016 00:10
Show Gist options
  • Select an option

  • Save wkz/0bafae4d24aad363fdf5 to your computer and use it in GitHub Desktop.

Select an option

Save wkz/0bafae4d24aad363fdf5 to your computer and use it in GitHub Desktop.
open.fs:
--
kprobe:SyS_open {
opens[comm()] += 1;
}
--
~ # dtl -f open.fs &
<DO RANDOM STUFF>
~ # fg
dtl -f open.fs
<Ctrl-C>
opens:
ash 26
syslogd 14
sh 10
cat 1
~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment