• Home
  • Raw
  • Download

Lines Matching refs:opts

242 					   struct record_opts *opts,  in intel_pt_parse_snapshot_options()  argument
256 opts->auxtrace_snapshot_mode = true; in intel_pt_parse_snapshot_options()
257 opts->auxtrace_snapshot_size = snapshot_size; in intel_pt_parse_snapshot_options()
621 struct record_opts *opts) in intel_pt_recording_options() argument
634 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_pt_recording_options()
646 opts->full_auxtrace = true; in intel_pt_recording_options()
650 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_pt_recording_options()
655 if (opts->auxtrace_snapshot_mode && opts->auxtrace_sample_mode) { in intel_pt_recording_options()
660 if (opts->use_clockid) { in intel_pt_recording_options()
668 if (!opts->full_auxtrace) in intel_pt_recording_options()
671 if (opts->auxtrace_sample_mode) in intel_pt_recording_options()
679 if (opts->auxtrace_snapshot_mode) { in intel_pt_recording_options()
682 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
684 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_pt_recording_options()
686 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_pt_recording_options()
687 if (opts->mmap_pages == UINT_MAX) in intel_pt_recording_options()
688 opts->mmap_pages = KiB(256) / page_size; in intel_pt_recording_options()
690 } else if (!opts->auxtrace_mmap_pages && !privileged && in intel_pt_recording_options()
691 opts->mmap_pages == UINT_MAX) { in intel_pt_recording_options()
692 opts->mmap_pages = KiB(256) / page_size; in intel_pt_recording_options()
694 if (!opts->auxtrace_snapshot_size) in intel_pt_recording_options()
695 opts->auxtrace_snapshot_size = in intel_pt_recording_options()
696 opts->auxtrace_mmap_pages * (size_t)page_size; in intel_pt_recording_options()
697 if (!opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
698 size_t sz = opts->auxtrace_snapshot_size; in intel_pt_recording_options()
701 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); in intel_pt_recording_options()
703 if (opts->auxtrace_snapshot_size > in intel_pt_recording_options()
704 opts->auxtrace_mmap_pages * (size_t)page_size) { in intel_pt_recording_options()
706 opts->auxtrace_snapshot_size, in intel_pt_recording_options()
707 opts->auxtrace_mmap_pages * (size_t)page_size); in intel_pt_recording_options()
710 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
715 opts->auxtrace_snapshot_size); in intel_pt_recording_options()
717 opts->auxtrace_snapshot_size <= psb_period + in intel_pt_recording_options()
720 opts->auxtrace_snapshot_size, psb_period); in intel_pt_recording_options()
724 if (opts->auxtrace_sample_mode) { in intel_pt_recording_options()
729 if (!opts->auxtrace_mmap_pages && !privileged && in intel_pt_recording_options()
730 opts->mmap_pages == UINT_MAX) in intel_pt_recording_options()
731 opts->mmap_pages = KiB(256) / page_size; in intel_pt_recording_options()
732 if (!opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
735 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); in intel_pt_recording_options()
737 if (max_sz > opts->auxtrace_mmap_pages * (size_t)page_size) { in intel_pt_recording_options()
740 opts->auxtrace_mmap_pages * (size_t)page_size); in intel_pt_recording_options()
752 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
754 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_pt_recording_options()
756 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_pt_recording_options()
757 if (opts->mmap_pages == UINT_MAX) in intel_pt_recording_options()
758 opts->mmap_pages = KiB(256) / page_size; in intel_pt_recording_options()
763 if (opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
764 size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; in intel_pt_recording_options()
767 if (opts->auxtrace_snapshot_mode || opts->auxtrace_sample_mode) in intel_pt_recording_options()
782 if (opts->full_auxtrace && (intel_pt_evsel->core.attr.config & tsc_bit)) in intel_pt_recording_options()
792 !record_opts__no_switch_events(opts)) { in intel_pt_recording_options()
794 bool cpu_wide = !target__none(&opts->target) && in intel_pt_recording_options()
795 !target__has_task(&opts->target); in intel_pt_recording_options()
819 opts->record_switch_events = false; in intel_pt_recording_options()
822 opts->record_switch_events = true; in intel_pt_recording_options()
842 opts->text_poke = true; in intel_pt_recording_options()
859 if (opts->full_auxtrace) { in intel_pt_recording_options()
891 !target__none(&opts->target) && in intel_pt_recording_options()