blob: c51a6c90797cedd1327e4fbd03ce66cb623fda49 [file] [log] [blame]
// prints entry/exit when entering/leaving a function
// for example, spatch with:
// $ for i in kern/src/ns/ kern/src/net kern/drivers/; do \
// spatch --sp-file scripts/spatch/poor-ftrace.cocci --in-place $i; done
// if you have functions you want to ignore, add them to the blacklist in
// kern/src/kdebug.c
@@
type t;
function f;
@@
t f(...) {
+print_func_entry();
<...
+print_func_exit();
return ...;
...>
}