X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fftrace.h;h=703eb53cfa2b2a1512b7ce97d9c1da218ad9ac0f;hb=cf7ee554f3a324e98181b0ea249d9d5be3a0acb8;hp=ce929cb5543581fdb6695897fef2340266779ff1;hpb=7b928c23fa3e9fa37d1d4ba52ba963f41ee5aae0;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index ce929cb5543..703eb53cfa2 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -1,10 +1,14 @@ #ifndef _LINUX_FTRACE_H #define _LINUX_FTRACE_H -#ifdef CONFIG_FTRACE - #include #include +#include +#include +#include +#include + +#ifdef CONFIG_FUNCTION_TRACER extern int ftrace_enabled; extern int @@ -32,15 +36,14 @@ void clear_ftrace_function(void); extern void ftrace_stub(unsigned long a0, unsigned long a1); -#else /* !CONFIG_FTRACE */ +#else /* !CONFIG_FUNCTION_TRACER */ # define register_ftrace_function(ops) do { } while (0) # define unregister_ftrace_function(ops) do { } while (0) # define clear_ftrace_function(ops) do { } while (0) -#endif /* CONFIG_FTRACE */ +static inline void ftrace_kill(void) { } +#endif /* CONFIG_FUNCTION_TRACER */ #ifdef CONFIG_DYNAMIC_FTRACE -# define FTRACE_HASHBITS 10 -# define FTRACE_HASHSIZE (1<