diff options
| author | David S. Miller <davem@davemloft.net> | 2012-10-02 23:02:10 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-10-02 23:02:10 -0400 |
| commit | 954f9ac43b87b44152b8c21163cefd466a87145e (patch) | |
| tree | 31c4197f975c66c96976948663e6ce844900b41a /kernel/trace/trace_functions.c | |
| parent | 1b62ca7bf5775bed048032b7e779561e1fe66aa0 (diff) | |
| parent | 7fe0b14b725d6d09a1d9e1409bd465cb88b587f9 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
There's a Niagara 2 memcpy fix in this tree and I have
a Kconfig fix from Dave Jones which requires the sparc-next
changes which went upstream yesterday.
Signed-off-by: David S. Miller <davem@davemloft.net>
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[] = { |
