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 c7b0c6a7db09..fdff65dff1bb 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c | |||
@@ -48,7 +48,8 @@ static void function_trace_start(struct trace_array *tr) | |||
48 | } | 48 | } |
49 | 49 | ||
50 | static void | 50 | static void |
51 | function_trace_call_preempt_only(unsigned long ip, unsigned long parent_ip) | 51 | function_trace_call_preempt_only(unsigned long ip, unsigned long parent_ip, |
52 | struct ftrace_ops *op, struct pt_regs *pt_regs) | ||
52 | { | 53 | { |
53 | struct trace_array *tr = func_trace; | 54 | struct trace_array *tr = func_trace; |
54 | struct trace_array_cpu *data; | 55 | struct trace_array_cpu *data; |
@@ -75,7 +76,9 @@ function_trace_call_preempt_only(unsigned long ip, unsigned long parent_ip) | |||
75 | } | 76 | } |
76 | 77 | ||
77 | static void | 78 | static void |
78 | function_trace_call(unsigned long ip, unsigned long parent_ip) | 79 | function_trace_call(unsigned long ip, unsigned long parent_ip, |
80 | struct ftrace_ops *op, struct pt_regs *pt_regs) | ||
81 | |||
79 | { | 82 | { |
80 | struct trace_array *tr = func_trace; | 83 | struct trace_array *tr = func_trace; |
81 | struct trace_array_cpu *data; | 84 | struct trace_array_cpu *data; |
@@ -106,7 +109,8 @@ function_trace_call(unsigned long ip, unsigned long parent_ip) | |||
106 | } | 109 | } |
107 | 110 | ||
108 | static void | 111 | static void |
109 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip) | 112 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip, |
113 | struct ftrace_ops *op, struct pt_regs *pt_regs) | ||
110 | { | 114 | { |
111 | struct trace_array *tr = func_trace; | 115 | struct trace_array *tr = func_trace; |
112 | struct trace_array_cpu *data; | 116 | struct trace_array_cpu *data; |
@@ -149,13 +153,13 @@ function_stack_trace_call(unsigned long ip, unsigned long parent_ip) | |||
149 | static struct ftrace_ops trace_ops __read_mostly = | 153 | static struct ftrace_ops trace_ops __read_mostly = |
150 | { | 154 | { |
151 | .func = function_trace_call, | 155 | .func = function_trace_call, |
152 | .flags = FTRACE_OPS_FL_GLOBAL, | 156 | .flags = FTRACE_OPS_FL_GLOBAL | FTRACE_OPS_FL_RECURSION_SAFE, |
153 | }; | 157 | }; |
154 | 158 | ||
155 | static struct ftrace_ops trace_stack_ops __read_mostly = | 159 | static struct ftrace_ops trace_stack_ops __read_mostly = |
156 | { | 160 | { |
157 | .func = function_stack_trace_call, | 161 | .func = function_stack_trace_call, |
158 | .flags = FTRACE_OPS_FL_GLOBAL, | 162 | .flags = FTRACE_OPS_FL_GLOBAL | FTRACE_OPS_FL_RECURSION_SAFE, |
159 | }; | 163 | }; |
160 | 164 | ||
161 | /* Our two options */ | 165 | /* Our two options */ |