| Current Path : /usr/share/systemtap/examples/io/ |
| Current File : //usr/share/systemtap/examples/io/nfs_func_users.stp |
#!/usr/bin/stap
global nfsdcalls
probe begin {
printf("Collecting top NFSD procs...\n")
}
probe {kernel,module("nfs")}.function("*@fs/nfs/*proc.c") ? {
nfsdcalls[execname(), pid()]++
}
probe end {
printf("\nname(pid) nfs ops\n");
foreach ([name,p] in nfsdcalls- limit 20)
printf("%s(%d) %d\n", name, p, nfsdcalls[name, p])
}