diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-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 83783579378f..d4d1238b096b 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -84,10 +84,6 @@ ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub; | |||
84 | ftrace_func_t __ftrace_trace_function __read_mostly = ftrace_stub; | 84 | ftrace_func_t __ftrace_trace_function __read_mostly = ftrace_stub; |
85 | ftrace_func_t ftrace_pid_function __read_mostly = ftrace_stub; | 85 | ftrace_func_t ftrace_pid_function __read_mostly = ftrace_stub; |
86 | 86 | ||
87 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | ||
88 | static int ftrace_set_func(unsigned long *array, int *idx, char *buffer); | ||
89 | #endif | ||
90 | |||
91 | static void ftrace_list_func(unsigned long ip, unsigned long parent_ip) | 87 | static void ftrace_list_func(unsigned long ip, unsigned long parent_ip) |
92 | { | 88 | { |
93 | struct ftrace_ops *op = ftrace_list; | 89 | struct ftrace_ops *op = ftrace_list; |
@@ -2276,6 +2272,8 @@ __setup("ftrace_filter=", set_ftrace_filter); | |||
2276 | 2272 | ||
2277 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 2273 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
2278 | static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata; | 2274 | static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata; |
2275 | static int ftrace_set_func(unsigned long *array, int *idx, char *buffer); | ||
2276 | |||
2279 | static int __init set_graph_function(char *str) | 2277 | static int __init set_graph_function(char *str) |
2280 | { | 2278 | { |
2281 | strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); | 2279 | strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); |