diff options
Diffstat (limited to 'tools/perf/util/intel-pt.c')
-rw-r--r-- | tools/perf/util/intel-pt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index dc243b19197b..551ff6f640be 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c | |||
@@ -1234,7 +1234,7 @@ static int intel_pt_sample(struct intel_pt_queue *ptq) | |||
1234 | if (!(state->type & INTEL_PT_BRANCH)) | 1234 | if (!(state->type & INTEL_PT_BRANCH)) |
1235 | return 0; | 1235 | return 0; |
1236 | 1236 | ||
1237 | if (pt->synth_opts.callchain) | 1237 | if (pt->synth_opts.callchain || pt->synth_opts.thread_stack) |
1238 | thread_stack__event(ptq->thread, ptq->flags, state->from_ip, | 1238 | thread_stack__event(ptq->thread, ptq->flags, state->from_ip, |
1239 | state->to_ip, ptq->insn_len, | 1239 | state->to_ip, ptq->insn_len, |
1240 | state->trace_nr); | 1240 | state->trace_nr); |
@@ -2137,6 +2137,9 @@ int intel_pt_process_auxtrace_info(union perf_event *event, | |||
2137 | pt->synth_opts.branches = false; | 2137 | pt->synth_opts.branches = false; |
2138 | pt->synth_opts.callchain = true; | 2138 | pt->synth_opts.callchain = true; |
2139 | } | 2139 | } |
2140 | if (session->itrace_synth_opts) | ||
2141 | pt->synth_opts.thread_stack = | ||
2142 | session->itrace_synth_opts->thread_stack; | ||
2140 | } | 2143 | } |
2141 | 2144 | ||
2142 | if (pt->synth_opts.log) | 2145 | if (pt->synth_opts.log) |