Skip to content

Instantly share code, notes, and snippets.

@kokukuma
Created December 1, 2015 07:01
Show Gist options
  • Save kokukuma/20060f1c05775952b59a to your computer and use it in GitHub Desktop.
Save kokukuma/20060f1c05775952b59a to your computer and use it in GitHub Desktop.
global syscalllist
probe begin {
printf("================================================ Syslog Monitoring Started\n")
}
probe module("nfs").function("*").return
{
syscalllist[execname(), pid(), probefunc()]++
}
probe module("ext4").function("*").return
{
syscalllist[execname(), pid(), probefunc()]++
}
probe module("vboxsf").function("*").return
{
syscalllist[execname(), pid(), probefunc()]++
}
probe kernel.function("generic_file_read_iter")
{
syscalllist[execname(), pid(), probefunc()]++
}
probe end {
foreach ( [exec, pid, func] in syscalllist- ) {
printf("%d %s(%d) %s\n", syscalllist[exec, pid, func], exec, pid , func)
}
exit()
printf("================================================ end\n")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment