diff options
| author | 2008-11-23 09:18:56 +0100 | |
|---|---|---|
| committer | 2008-11-23 09:19:35 +0100 | |
| commit | 82f60f0bc854aada696f27d863c03bef91f1509d (patch) | |
| tree | 521fbccfc12f6c8a36f261b20eacbc84a4a31add /include | |
| parent | tracing/function-return-tracer: store return stack into task_struct and allocate it dynamically (diff) | |
| download | linux-dev-82f60f0bc854aada696f27d863c03bef91f1509d.tar.xz linux-dev-82f60f0bc854aada696f27d863c03bef91f1509d.zip | |
tracing/function-return-tracer: clean up task start/exit callbacks
Impact: cleanup
Eliminate #ifdefs in core code by using empty inline functions.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ftrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 2ba259b2defa..938ca1942641 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -335,6 +335,9 @@ extern void unregister_ftrace_return(void); extern void ftrace_retfunc_init_task(struct task_struct *t); extern void ftrace_retfunc_exit_task(struct task_struct *t); +#else +static inline void ftrace_retfunc_init_task(struct task_struct *t) { } +static inline void ftrace_retfunc_exit_task(struct task_struct *t) { } #endif #endif /* _LINUX_FTRACE_H */ |
