diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-12 10:17:09 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 10:17:09 +0100 |
commit | 60a011c736e7dd09a0b01ca6a051a416f3f52ffb (patch) | |
tree | 20e91db58c3bbfa622d3ed8ec747e4974a807284 /kernel/trace/ftrace.c | |
parent | d06bbd669539215405874d8fe32ab65105e6c4bb (diff) | |
parent | 19b3e9671c5a219b8c34da2cc66e0ce7c3a501ae (diff) | |
download | kernel_samsung_smdk4412-60a011c736e7dd09a0b01ca6a051a416f3f52ffb.tar.gz kernel_samsung_smdk4412-60a011c736e7dd09a0b01ca6a051a416f3f52ffb.tar.bz2 kernel_samsung_smdk4412-60a011c736e7dd09a0b01ca6a051a416f3f52ffb.zip |
Merge branch 'tracing/function-return-tracer' into tracing/fastboot
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 25b803559f1..beb21a51e1e 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -1480,3 +1480,19 @@ ftrace_enable_sysctl(struct ctl_table *table, int write, return ret; } +#ifdef CONFIG_FUNCTION_RET_TRACER +trace_function_return_t ftrace_function_return = + (trace_function_return_t)ftrace_stub; +void register_ftrace_return(trace_function_return_t func) +{ + ftrace_function_return = func; +} + +void unregister_ftrace_return(void) +{ + ftrace_function_return = (trace_function_return_t)ftrace_stub; +} +#endif + + + |