PROBING

To trace entry and exit from a function, use a pair of probes:
probe kernel.function("sys_mkdir") { println ("enter") }
probe kernel.function("sys_mkdir").return { println ("exit") }
To list the probeable functions in the kernel, use the last-pass option
to the translator. That output needs to be filtered because each
inlined function instance is listed separately.
% stap -p2 -e 'probe kernel.function("*") {}' | sort | uniq