diff options
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r-- | kernel/trace/trace_functions.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index a426f410c060..483162a9f908 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c | |||
@@ -49,7 +49,8 @@ static void function_trace_start(struct trace_array *tr) | |||
49 | } | 49 | } |
50 | 50 | ||
51 | static void | 51 | static void |
52 | function_trace_call_preempt_only(unsigned long ip, unsigned long parent_ip) | 52 | function_trace_call_preempt_only(unsigned long ip, unsigned long parent_ip, |
53 | struct ftrace_ops *op, struct pt_regs *pt_regs) | ||
53 | { | 54 | { |
54 | struct trace_array *tr = func_trace; | 55 | struct trace_array *tr = func_trace; |
55 | struct trace_array_cpu *data; | 56 | struct trace_array_cpu *data; |
@@ -84,7 +85,9 @@ enum { | |||
84 | static struct tracer_flags func_flags; | 85 | static struct tracer_flags func_flags; |
85 | 86 | ||
86 | static void | 87 | static void |
87 | function_trace_call(unsigned long ip, unsigned long parent_ip) | 88 | function_trace_call(unsigned long ip, unsigned long parent_ip, |
89 | struct ftrace_ops *op, struct pt_regs *pt_regs) | ||
90 | |||
88 | { | 91 | { |
89 | struct trace_array *tr = func_trace; | 92 | struct trace_array *tr = func_trace; |
90 | struct trace_array_cpu *data; | 93 | struct trace_array_cpu *data; |
@@ -121,7 +124,8 @@ function_trace_call(unsigned long ip, unsigned long parent_ip) | |||
121 | } | 124 | } |
122 | 125 | ||
123 | static void | 126 | static void |
124 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip) | 127 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip, |
128 | struct ftrace_ops *op, struct pt_regs *pt_regs) | ||
125 | { | 129 | { |
126 | struct trace_array *tr = func_trace; | 130 | struct trace_array *tr = func_trace; |
127 | struct trace_array_cpu *data; | 131 | struct trace_array_cpu *data; |
@@ -164,13 +168,13 @@ function_stack_trace_call(unsigned long ip, unsigned long parent_ip) | |||
164 | static struct ftrace_ops trace_ops __read_mostly = | 168 | static struct ftrace_ops trace_ops __read_mostly = |
165 | { | 169 | { |
166 | .func = function_trace_call, | 170 | .func = function_trace_call, |
167 | .flags = FTRACE_OPS_FL_GLOBAL, | 171 | .flags = FTRACE_OPS_FL_GLOBAL | FTRACE_OPS_FL_RECURSION_SAFE, |
168 | }; | 172 | }; |
169 | 173 | ||
170 | static struct ftrace_ops trace_stack_ops __read_mostly = | 174 | static struct ftrace_ops trace_stack_ops __read_mostly = |
171 | { | 175 | { |
172 | .func = function_stack_trace_call, | 176 | .func = function_stack_trace_call, |
173 | .flags = FTRACE_OPS_FL_GLOBAL, | 177 | .flags = FTRACE_OPS_FL_GLOBAL | FTRACE_OPS_FL_RECURSION_SAFE, |
174 | }; | 178 | }; |
175 | 179 | ||
176 | static struct tracer_opt func_opts[] = { | 180 | static struct tracer_opt func_opts[] = { |