|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/share/systemtap/examples/io/ |
Upload File : |
#!/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])
}