This is really interesting; I hadn't realized it was so capable/general. I'll look into this. Thanks for the references!
https://github.com/iovisor/bpftrace
I would also strongly recommend Brendan Greggs book: http://www.brendangregg.com/bpf-performance-tools-book.html