Skip to content

Instantly share code, notes, and snippets.

@iAnatoly
Created February 8, 2021 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iAnatoly/126b3c01b27c1f94d2541dd34b9d8838 to your computer and use it in GitHub Desktop.
Save iAnatoly/126b3c01b27c1f94d2541dd34b9d8838 to your computer and use it in GitHub Desktop.
bpftrace oneliner for swap-in and swap-out
bpftrace -e 'kprobe:swap_read*,kprobe:swap_write* {@[comm, pid] = count();} interval:s:5{ time(); print(@); clear(@); }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment