diff options
| -rw-r--r-- | kernel/trace/ftrace.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index d996353473fd..d0407c9f368c 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
| @@ -85,10 +85,6 @@ ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub; | |||
| 85 | ftrace_func_t __ftrace_trace_function __read_mostly = ftrace_stub; | 85 | ftrace_func_t __ftrace_trace_function __read_mostly = ftrace_stub; |
| 86 | ftrace_func_t ftrace_pid_function __read_mostly = ftrace_stub; | 86 | ftrace_func_t ftrace_pid_function __read_mostly = ftrace_stub; |
| 87 | 87 | ||
| 88 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | ||
| 89 | static int ftrace_set_func(unsigned long *array, int *idx, char *buffer); | ||
| 90 | #endif | ||
| 91 | |||
| 92 | static void ftrace_list_func(unsigned long ip, unsigned long parent_ip) | 88 | static void ftrace_list_func(unsigned long ip, unsigned long parent_ip) |
| 93 | { | 89 | { |
| 94 | struct ftrace_ops *op = ftrace_list; | 90 | struct ftrace_ops *op = ftrace_list; |
| @@ -2300,6 +2296,8 @@ __setup("ftrace_filter=", set_ftrace_filter); | |||
| 2300 | 2296 | ||
| 2301 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 2297 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| 2302 | static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata; | 2298 | static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata; |
| 2299 | static int ftrace_set_func(unsigned long *array, int *idx, char *buffer); | ||
| 2300 | |||
| 2303 | static int __init set_graph_function(char *str) | 2301 | static int __init set_graph_function(char *str) |
| 2304 | { | 2302 | { |
| 2305 | strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); | 2303 | strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); |
