Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.