diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 83783579378f..bb53edbb5c8c 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); |
@@ -3351,6 +3349,7 @@ void ftrace_graph_init_task(struct task_struct *t) | |||
3351 | { | 3349 | { |
3352 | /* Make sure we do not use the parent ret_stack */ | 3350 | /* Make sure we do not use the parent ret_stack */ |
3353 | t->ret_stack = NULL; | 3351 | t->ret_stack = NULL; |
3352 | t->curr_ret_stack = -1; | ||
3354 | 3353 | ||
3355 | if (ftrace_graph_active) { | 3354 | if (ftrace_graph_active) { |
3356 | struct ftrace_ret_stack *ret_stack; | 3355 | struct ftrace_ret_stack *ret_stack; |
@@ -3360,7 +3359,6 @@ void ftrace_graph_init_task(struct task_struct *t) | |||
3360 | GFP_KERNEL); | 3359 | GFP_KERNEL); |
3361 | if (!ret_stack) | 3360 | if (!ret_stack) |
3362 | return; | 3361 | return; |
3363 | t->curr_ret_stack = -1; | ||
3364 | atomic_set(&t->tracing_graph_pause, 0); | 3362 | atomic_set(&t->tracing_graph_pause, 0); |
3365 | atomic_set(&t->trace_overrun, 0); | 3363 | atomic_set(&t->trace_overrun, 0); |
3366 | t->ftrace_timestamp = 0; | 3364 | t->ftrace_timestamp = 0; |