diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-06 19:30:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-06 19:30:14 -0500 |
commit | ac5eed2b41776b05cf03aac761d3bb5e64eea24c (patch) | |
tree | c9bf703ffaf0265fa1135f0dd6f65485184a3570 /tools/perf/util/intel-pt.c | |
parent | 574823bfab82d9d8fa47f422778043fbb4b4f50e (diff) | |
parent | 2573be22e5b6f24a0cabc97715c808c47e29eaaf (diff) |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf tooling updates form Ingo Molnar:
"A final batch of perf tooling changes: mostly fixes and small
improvements"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (29 commits)
perf session: Add comment for perf_session__register_idle_thread()
perf thread-stack: Fix thread stack processing for the idle task
perf thread-stack: Allocate an array of thread stacks
perf thread-stack: Factor out thread_stack__init()
perf thread-stack: Allow for a thread stack array
perf thread-stack: Avoid direct reference to the thread's stack
perf thread-stack: Tidy thread_stack__bottom() usage
perf thread-stack: Simplify some code in thread_stack__process()
tools gpio: Allow overriding CFLAGS
tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command
tools thermal tmon: Allow overriding CFLAGS assignments
tools power x86_energy_perf_policy: Override CFLAGS assignments and add LDFLAGS to build command
perf c2c: Increase the HITM ratio limit for displayed cachelines
perf c2c: Change the default coalesce setup
perf trace beauty ioctl: Beautify USBDEVFS_ commands
perf trace beauty: Export function to get the files for a thread
perf trace: Wire up ioctl's USBDEBFS_ cmd table generator
perf beauty ioctl: Add generator for USBDEVFS_ ioctl commands
tools headers uapi: Grab a copy of usbdevice_fs.h
perf trace: Store the major number for a file when storing its pathname
...
Diffstat (limited to 'tools/perf/util/intel-pt.c')
-rw-r--r-- | tools/perf/util/intel-pt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index 149ff361ca78..2e72373ec6df 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c | |||
@@ -1174,7 +1174,7 @@ static void intel_pt_prep_sample(struct intel_pt *pt, | |||
1174 | intel_pt_prep_b_sample(pt, ptq, event, sample); | 1174 | intel_pt_prep_b_sample(pt, ptq, event, sample); |
1175 | 1175 | ||
1176 | if (pt->synth_opts.callchain) { | 1176 | if (pt->synth_opts.callchain) { |
1177 | thread_stack__sample(ptq->thread, ptq->chain, | 1177 | thread_stack__sample(ptq->thread, ptq->cpu, ptq->chain, |
1178 | pt->synth_opts.callchain_sz + 1, | 1178 | pt->synth_opts.callchain_sz + 1, |
1179 | sample->ip, pt->kernel_start); | 1179 | sample->ip, pt->kernel_start); |
1180 | sample->callchain = ptq->chain; | 1180 | sample->callchain = ptq->chain; |
@@ -1526,11 +1526,11 @@ static int intel_pt_sample(struct intel_pt_queue *ptq) | |||
1526 | return 0; | 1526 | return 0; |
1527 | 1527 | ||
1528 | if (pt->synth_opts.callchain || pt->synth_opts.thread_stack) | 1528 | if (pt->synth_opts.callchain || pt->synth_opts.thread_stack) |
1529 | thread_stack__event(ptq->thread, ptq->flags, state->from_ip, | 1529 | thread_stack__event(ptq->thread, ptq->cpu, ptq->flags, state->from_ip, |
1530 | state->to_ip, ptq->insn_len, | 1530 | state->to_ip, ptq->insn_len, |
1531 | state->trace_nr); | 1531 | state->trace_nr); |
1532 | else | 1532 | else |
1533 | thread_stack__set_trace_nr(ptq->thread, state->trace_nr); | 1533 | thread_stack__set_trace_nr(ptq->thread, ptq->cpu, state->trace_nr); |
1534 | 1534 | ||
1535 | if (pt->sample_branches) { | 1535 | if (pt->sample_branches) { |
1536 | err = intel_pt_synth_branch_sample(ptq); | 1536 | err = intel_pt_synth_branch_sample(ptq); |