I'd also recommend looking at bpftrace[1], which provides a simple DSL specifically for writing BPF programs and attaching them to events. (Disclaimer: I started the project)
[1] https://github.com/iovisor/bpftrace/blob/master/docs/tutoria...
Brendans sharing is amazing, I have and am learning so much from it, as well as having referred others to it when they have a performance issue but missing the troubleshooting tools.
Re:BPF: A New Type of Software
by thinkmassive on Tuesday December 03, 2019 @10:24AM
(#21693042)
He also has a book coming out this month, BPF Performance Tools
http://www.brendangregg.com/bpf-performance-tools-book.html
There's also https://github.com/iovisor/bcc#tools as an easy way to get started using BPF.