aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 83783579378..d4d1238b096 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;
84ftrace_func_t __ftrace_trace_function __read_mostly = ftrace_stub; 84ftrace_func_t __ftrace_trace_function __read_mostly = ftrace_stub;
85ftrace_func_t ftrace_pid_function __read_mostly = ftrace_stub; 85ftrace_func_t ftrace_pid_function __read_mostly = ftrace_stub;
86 86
87#ifdef CONFIG_FUNCTION_GRAPH_TRACER
88static int ftrace_set_func(unsigned long *array, int *idx, char *buffer);
89#endif
90
91static void ftrace_list_func(unsigned long ip, unsigned long parent_ip) 87static 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
2278static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata; 2274static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata;
2275static int ftrace_set_func(unsigned long *array, int *idx, char *buffer);
2276
2279static int __init set_graph_function(char *str) 2277static 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);