function_hooks: pass the function name as well.