Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

where_func Directory Reference

This is a silly little instrumentation routine to instrument functions entry by name. More...

Files

file  kprobe_where_funct.c [code]
file  kprobe_where_funct.mod.c [code]
file  README [code]

Detailed Description

This is a silly little instrumentation routine to instrument functions entry by name.

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
The instrumentation is inserted as root with:
/sbin/insmod kprobe_funct_where.ko funct_name=function_name
The instrumentation is removed as root with:
/sbin/rmmod kprobe_funct_where
-Will Cohen