I ported a tool called mctop to use eBPF and USDT probes.
This document describes the process I went through while building it, with the hopes that it will be instructive to others who would like to build eBPF tools.
Also, so I don't forget how all this stuff works.