Skip to content

ksub42/stat-bpftrace-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A (one-off) bpftrace script to look for the top 10 userspace callers of the following:

  • vfs_statfs
  • Variants of stat(2): newstat, newlstat, newfstat, newfstatat
  • nfs4_getattr
  • nfs4_xdr_enc_getattr

To use:

  1. Download stat.bt
  2. Run bpftrace stat.bt|tee stat_out.txt, and hit Ctrl-C after a few minutes.
  3. stat_out.txt can later be processed to get the statistics we need.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published