A collection of BPF scripts to break down performance aspects of various layers in storage systems software stack.
sudo bpftrace ./[script path]
To direct the BPF output containing the resulting maps, we can provide an output file in the bpftrace command.
sudo bpftrace ./[script path] -o data.dat
We aim to focus on scripts for the storage stack, and anything that might be in between, or give us insight into system functionality. All available scripts, for their respective software layer, are shown in the figure below.
In case there are scripts you feel like should be added in here, feel free to put in a pull request, and we'll be happy to add it to the repo!
This work is largely inspired by Brendan Gregg, who has an insightful book into BPF profiling (more here), and similarly provides a collection of BPF scripts (available here).