diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-03-08 10:40:07 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:35:54 -0400 |
commit | 153e8ed913b022d2003866a848af9fadc041403f (patch) | |
tree | f4e1281c8fa0e41fef569c903ed692b829647f96 /kernel/trace/trace_branch.c | |
parent | 55034cd6e648155393b0d665eef76b38d49ad6bf (diff) |
tracing: Fix the branch tracer that broke with buffer change
The changce to add the trace_buffer struct to have the trace array
have both the main buffer and max buffer broke the branch tracer
because the change did not update that code. As the branch tracer
adds a significant amount of overhead, and must be selected via
a selection (not a allyesconfig) it was missed in testing.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r-- | kernel/trace/trace_branch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c index 6dadbefbb1d6..d594da0dc03c 100644 --- a/kernel/trace/trace_branch.c +++ b/kernel/trace/trace_branch.c | |||
@@ -52,12 +52,12 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect) | |||
52 | 52 | ||
53 | local_irq_save(flags); | 53 | local_irq_save(flags); |
54 | cpu = raw_smp_processor_id(); | 54 | cpu = raw_smp_processor_id(); |
55 | data = per_cpu_ptr(tr->data, cpu); | 55 | data = per_cpu_ptr(tr->trace_buffer.data, cpu); |
56 | if (atomic_inc_return(&data->disabled) != 1) | 56 | if (atomic_inc_return(&data->disabled) != 1) |
57 | goto out; | 57 | goto out; |
58 | 58 | ||
59 | pc = preempt_count(); | 59 | pc = preempt_count(); |
60 | buffer = tr->buffer; | 60 | buffer = tr->trace_buffer.buffer; |
61 | event = trace_buffer_lock_reserve(buffer, TRACE_BRANCH, | 61 | event = trace_buffer_lock_reserve(buffer, TRACE_BRANCH, |
62 | sizeof(*entry), flags, pc); | 62 | sizeof(*entry), flags, pc); |
63 | if (!event) | 63 | if (!event) |