1: https://en.wikipedia.org/wiki/Berkeley_Packet_Filter
You can write C hooks for tracing and profiling, etc. - with inline asm!
[1] https://docs.kernel.org/bpf/
reply
1: https://en.wikipedia.org/wiki/Berkeley_Packet_Filter