Lines Matching refs:synth_opts

93 	struct itrace_synth_opts synth_opts;  member
288 struct perf_time_interval *range = pt->synth_opts.ptime_range; in intel_pt_log_events()
289 int n = pt->synth_opts.range_num; in intel_pt_log_events()
291 if (pt->synth_opts.log_plus_flags & AUXTRACE_LOG_FLG_ALL_PERF_EVTS) in intel_pt_log_events()
294 if (pt->synth_opts.log_minus_flags & AUXTRACE_LOG_FLG_ALL_PERF_EVTS) in intel_pt_log_events()
371 pt->synth_opts.vm_time_correlation); in intel_pt_do_fix_overlap()
379 if (pt->synth_opts.vm_time_correlation) in intel_pt_do_fix_overlap()
1060 if (!pt->tsc_bit || !pt->cap_user_time_zero || pt->synth_opts.timeless_decoding) in intel_pt_timeless_decoding()
1160 sz += (pt->synth_opts.callchain_sz + 1) * sizeof(u64); in intel_pt_alloc_chain()
1188 pt->synth_opts.callchain_sz + 1, sample->ip, in intel_pt_add_callchain()
1246 if (pt->synth_opts.callchain) { in intel_pt_alloc_queue()
1252 if (pt->synth_opts.last_branch || pt->synth_opts.other_events) { in intel_pt_alloc_queue()
1284 params.quick = pt->synth_opts.quick; in intel_pt_alloc_queue()
1285 params.vm_time_correlation = pt->synth_opts.vm_time_correlation; in intel_pt_alloc_queue()
1286 params.vm_tm_corr_dry_run = pt->synth_opts.vm_tm_corr_dry_run; in intel_pt_alloc_queue()
1297 if (pt->synth_opts.instructions) { in intel_pt_alloc_queue()
1298 if (pt->synth_opts.period) { in intel_pt_alloc_queue()
1299 switch (pt->synth_opts.period_type) { in intel_pt_alloc_queue()
1303 params.period = pt->synth_opts.period; in intel_pt_alloc_queue()
1307 params.period = pt->synth_opts.period; in intel_pt_alloc_queue()
1312 pt->synth_opts.period); in intel_pt_alloc_queue()
1556 return pt->synth_opts.initial_skip && in intel_pt_skip_event()
1557 pt->num_events++ < pt->synth_opts.initial_skip; in intel_pt_skip_event()
1567 return pt->synth_opts.initial_skip && in intel_pt_skip_cbr_event()
1568 pt->num_events + 4 < pt->synth_opts.initial_skip; in intel_pt_skip_cbr_event()
1615 if (!pt->synth_opts.inject) in intel_pt_opt_inject()
1664 if (pt->synth_opts.last_branch && sort__mode == SORT_MODE__BRANCH) { in intel_pt_synth_branch_sample()
1695 if (pt->synth_opts.callchain) { in intel_pt_prep_sample()
1697 pt->synth_opts.callchain_sz + 1, in intel_pt_prep_sample()
1702 if (pt->synth_opts.last_branch) { in intel_pt_prep_sample()
1722 if (pt->synth_opts.quick) in intel_pt_synth_instruction_sample()
2130 pt->synth_opts.callchain) { in intel_pt_do_synth_pebs_sample()
2132 pt->synth_opts.callchain_sz, sample.ip, in intel_pt_do_synth_pebs_sample()
2158 } else if (pt->synth_opts.last_branch) { in intel_pt_do_synth_pebs_sample()
2333 if (pt->synth_opts.error_minus_flags) { in intel_pt_synth_error()
2335 pt->synth_opts.error_minus_flags & AUXTRACE_ERR_FLG_OVERFLOW) in intel_pt_synth_error()
2338 pt->synth_opts.error_minus_flags & AUXTRACE_ERR_FLG_DATA_LOST) in intel_pt_synth_error()
2412 if (pt->synth_opts.approx_ipc) { in intel_pt_sample()
2436 if (pt->synth_opts.intr_events) { in intel_pt_sample()
2722 !pt->sampling_mode && !pt->synth_opts.vm_time_correlation) { in intel_pt_run_decoder()
2749 if (pt->synth_opts.errors) { in intel_pt_run_decoder()
3254 if (pt->synth_opts.add_callchain && !sample->callchain) in intel_pt_process_event()
3256 if (pt->synth_opts.add_last_branch && !sample->branch_stack) in intel_pt_process_event()
3262 pt->synth_opts.errors) { in intel_pt_process_event()
3519 if (pt->synth_opts.branches) { in intel_pt_synth_events()
3533 if (pt->synth_opts.callchain) in intel_pt_synth_events()
3535 if (pt->synth_opts.last_branch) { in intel_pt_synth_events()
3545 if (pt->synth_opts.instructions) { in intel_pt_synth_events()
3547 if (pt->synth_opts.period_type == PERF_ITRACE_PERIOD_NANOSECS) in intel_pt_synth_events()
3549 intel_pt_ns_to_ticks(pt, pt->synth_opts.period); in intel_pt_synth_events()
3551 attr.sample_period = pt->synth_opts.period; in intel_pt_synth_events()
3564 if (pt->synth_opts.transactions) { in intel_pt_synth_events()
3579 if (pt->synth_opts.ptwrites) { in intel_pt_synth_events()
3591 if (pt->synth_opts.pwr_events) { in intel_pt_synth_events()
3612 if (pt->synth_opts.pwr_events && (evsel->core.attr.config & INTEL_PT_CFG_PWR_EVT_EN)) { in intel_pt_synth_events()
3646 if (pt->synth_opts.intr_events && (evsel->core.attr.config & INTEL_PT_CFG_EVT_EN)) { in intel_pt_synth_events()
3657 if (pt->synth_opts.intr_events && pt->cap_event_trace) { in intel_pt_synth_events()
3675 if (!pt->synth_opts.other_events) in intel_pt_setup_pebs_events()
3851 char *args = pt->synth_opts.vm_tm_corr_args; in intel_pt_parse_vm_tm_corr_args()
3944 pt->synth_opts = *session->itrace_synth_opts; in intel_pt_process_auxtrace_info()
3948 itrace_synth_opts__set_default(&pt->synth_opts, opts->default_no_sample); in intel_pt_process_auxtrace_info()
3950 pt->synth_opts.branches = false; in intel_pt_process_auxtrace_info()
3951 pt->synth_opts.callchain = true; in intel_pt_process_auxtrace_info()
3952 pt->synth_opts.add_callchain = true; in intel_pt_process_auxtrace_info()
3954 pt->synth_opts.thread_stack = opts->thread_stack; in intel_pt_process_auxtrace_info()
3957 if (!(pt->synth_opts.log_plus_flags & AUXTRACE_LOG_FLG_USE_STDOUT)) in intel_pt_process_auxtrace_info()
4048 if (pt->synth_opts.vm_time_correlation) { in intel_pt_process_auxtrace_info()
4119 if (pt->synth_opts.log) in intel_pt_process_auxtrace_info()
4139 if (pt->synth_opts.calls) in intel_pt_process_auxtrace_info()
4142 if (pt->synth_opts.returns) in intel_pt_process_auxtrace_info()
4146 if ((pt->synth_opts.callchain || pt->synth_opts.add_callchain) && in intel_pt_process_auxtrace_info()
4151 pt->synth_opts.callchain = false; in intel_pt_process_auxtrace_info()
4152 pt->synth_opts.add_callchain = false; in intel_pt_process_auxtrace_info()
4156 if (pt->synth_opts.add_callchain) { in intel_pt_process_auxtrace_info()
4162 if (pt->synth_opts.last_branch || pt->synth_opts.add_last_branch) { in intel_pt_process_auxtrace_info()
4163 pt->br_stack_sz = pt->synth_opts.last_branch_sz; in intel_pt_process_auxtrace_info()
4167 if (pt->synth_opts.add_last_branch) { in intel_pt_process_auxtrace_info()
4184 pt->use_thread_stack = pt->synth_opts.callchain || in intel_pt_process_auxtrace_info()
4185 pt->synth_opts.add_callchain || in intel_pt_process_auxtrace_info()
4186 pt->synth_opts.thread_stack || in intel_pt_process_auxtrace_info()
4187 pt->synth_opts.last_branch || in intel_pt_process_auxtrace_info()
4188 pt->synth_opts.add_last_branch; in intel_pt_process_auxtrace_info()
4190 pt->callstack = pt->synth_opts.callchain || in intel_pt_process_auxtrace_info()
4191 pt->synth_opts.add_callchain || in intel_pt_process_auxtrace_info()
4192 pt->synth_opts.thread_stack; in intel_pt_process_auxtrace_info()