diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-09 04:35:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 04:35:12 -0500 |
commit | 44b0635481437140b0e29d6023f05e805d5e7620 (patch) | |
tree | ff31986115075410d0479df307a6b9841976026c /kernel/trace/trace_hw_branches.c | |
parent | 4ad476e11f94fd3724c6e272d8220e99cd222b27 (diff) | |
parent | 57794a9d48b63e34acbe63282628c9f029603308 (diff) |
Merge branch 'tip/tracing/core/devel' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
Conflicts:
kernel/trace/trace_hw_branches.c
Diffstat (limited to 'kernel/trace/trace_hw_branches.c')
-rw-r--r-- | kernel/trace/trace_hw_branches.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_hw_branches.c b/kernel/trace/trace_hw_branches.c index ca4bbcfb9e2c..e3e7db61c067 100644 --- a/kernel/trace/trace_hw_branches.c +++ b/kernel/trace/trace_hw_branches.c | |||
@@ -158,7 +158,7 @@ static enum print_line_t bts_trace_print_line(struct trace_iterator *iter) | |||
158 | trace_assign_type(it, entry); | 158 | trace_assign_type(it, entry); |
159 | 159 | ||
160 | if (entry->type == TRACE_HW_BRANCHES) { | 160 | if (entry->type == TRACE_HW_BRANCHES) { |
161 | if (trace_seq_printf(seq, "%4d ", entry->cpu) && | 161 | if (trace_seq_printf(seq, "%4d ", iter->cpu) && |
162 | seq_print_ip_sym(seq, it->to, symflags) && | 162 | seq_print_ip_sym(seq, it->to, symflags) && |
163 | trace_seq_printf(seq, "\t <- ") && | 163 | trace_seq_printf(seq, "\t <- ") && |
164 | seq_print_ip_sym(seq, it->from, symflags) && | 164 | seq_print_ip_sym(seq, it->from, symflags) && |
@@ -193,7 +193,8 @@ void trace_hw_branch(u64 from, u64 to) | |||
193 | if (!event) | 193 | if (!event) |
194 | goto out; | 194 | goto out; |
195 | entry = ring_buffer_event_data(event); | 195 | entry = ring_buffer_event_data(event); |
196 | entry->ent.cpu = cpu; | 196 | tracing_generic_entry_update(&entry->ent, 0, from); |
197 | entry->ent.type = TRACE_HW_BRANCHES; | ||
197 | entry->from = from; | 198 | entry->from = from; |
198 | entry->to = to; | 199 | entry->to = to; |
199 | trace_buffer_unlock_commit(tr, event, 0, 0); | 200 | trace_buffer_unlock_commit(tr, event, 0, 0); |