diff options
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 25b803559f17..beb21a51e1ef 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1480,3 +1480,19 @@ ftrace_enable_sysctl(struct ctl_table *table, int write, | |||
1480 | return ret; | 1480 | return ret; |
1481 | } | 1481 | } |
1482 | 1482 | ||
1483 | #ifdef CONFIG_FUNCTION_RET_TRACER | ||
1484 | trace_function_return_t ftrace_function_return = | ||
1485 | (trace_function_return_t)ftrace_stub; | ||
1486 | void register_ftrace_return(trace_function_return_t func) | ||
1487 | { | ||
1488 | ftrace_function_return = func; | ||
1489 | } | ||
1490 | |||
1491 | void unregister_ftrace_return(void) | ||
1492 | { | ||
1493 | ftrace_function_return = (trace_function_return_t)ftrace_stub; | ||
1494 | } | ||
1495 | #endif | ||
1496 | |||
1497 | |||
1498 | |||