aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/intel-bts.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/intel-bts.c')
-rw-r--r--tools/perf/util/intel-bts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c
index 7b27d77306c2..ee6ca65f81f4 100644
--- a/tools/perf/util/intel-bts.c
+++ b/tools/perf/util/intel-bts.c
@@ -451,7 +451,7 @@ static int intel_bts_process_buffer(struct intel_bts_queue *btsq,
451 continue; 451 continue;
452 intel_bts_get_branch_type(btsq, branch); 452 intel_bts_get_branch_type(btsq, branch);
453 if (btsq->bts->synth_opts.thread_stack) 453 if (btsq->bts->synth_opts.thread_stack)
454 thread_stack__event(thread, btsq->sample_flags, 454 thread_stack__event(thread, btsq->cpu, btsq->sample_flags,
455 le64_to_cpu(branch->from), 455 le64_to_cpu(branch->from),
456 le64_to_cpu(branch->to), 456 le64_to_cpu(branch->to),
457 btsq->intel_pt_insn.length, 457 btsq->intel_pt_insn.length,
@@ -523,7 +523,7 @@ static int intel_bts_process_queue(struct intel_bts_queue *btsq, u64 *timestamp)
523 !btsq->bts->synth_opts.thread_stack && thread && 523 !btsq->bts->synth_opts.thread_stack && thread &&
524 (!old_buffer || btsq->bts->sampling_mode || 524 (!old_buffer || btsq->bts->sampling_mode ||
525 (btsq->bts->snapshot_mode && !buffer->consecutive))) 525 (btsq->bts->snapshot_mode && !buffer->consecutive)))
526 thread_stack__set_trace_nr(thread, buffer->buffer_nr + 1); 526 thread_stack__set_trace_nr(thread, btsq->cpu, buffer->buffer_nr + 1);
527 527
528 err = intel_bts_process_buffer(btsq, buffer, thread); 528 err = intel_bts_process_buffer(btsq, buffer, thread);
529 529