Files | |
file | kprobe_where_funct.c [code] |
file | kprobe_where_funct.mod.c [code] |
file | README [code] |
It makes use of the SystemTap runtime libraries to break down the number of times the function by caller.
It demonstrates kprobes, passing a module parameter, using the print buffer, and using _stp_print_symbol() to map the addresses back to locations in functions.
By default it instruments schedule().
The instrumentation module is built by having the kernel that is going to be instrumented currently on the machine and doing
./build
/sbin/insmod kprobe_funct_where.ko funct_name=function_name
/sbin/rmmod kprobe_funct_where