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 4d2e751bfb11..f03fe74ecd67 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1484,3 +1484,19 @@ ftrace_enable_sysctl(struct ctl_table *table, int write, | |||
1484 | return ret; | 1484 | return ret; |
1485 | } | 1485 | } |
1486 | 1486 | ||
1487 | #ifdef CONFIG_FUNCTION_RET_TRACER | ||
1488 | trace_function_return_t ftrace_function_return = | ||
1489 | (trace_function_return_t)ftrace_stub; | ||
1490 | void register_ftrace_return(trace_function_return_t func) | ||
1491 | { | ||
1492 | ftrace_function_return = func; | ||
1493 | } | ||
1494 | |||
1495 | void unregister_ftrace_return(void) | ||
1496 | { | ||
1497 | ftrace_function_return = (trace_function_return_t)ftrace_stub; | ||
1498 | } | ||
1499 | #endif | ||
1500 | |||
1501 | |||
1502 | |||