Lines Matching refs:opts

107 				       struct record_opts *opts)  in intel_bts_recording_options()  argument
116 if (opts->auxtrace_sample_mode) { in intel_bts_recording_options()
122 btsr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_bts_recording_options()
133 opts->full_auxtrace = true; in intel_bts_recording_options()
137 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
142 if (!opts->full_auxtrace) in intel_bts_recording_options()
145 if (opts->full_auxtrace && !perf_cpu_map__empty(cpus)) { in intel_bts_recording_options()
151 if (opts->auxtrace_snapshot_mode) { in intel_bts_recording_options()
152 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
154 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_bts_recording_options()
156 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_bts_recording_options()
157 if (opts->mmap_pages == UINT_MAX) in intel_bts_recording_options()
158 opts->mmap_pages = KiB(256) / page_size; in intel_bts_recording_options()
160 } else if (!opts->auxtrace_mmap_pages && !privileged && in intel_bts_recording_options()
161 opts->mmap_pages == UINT_MAX) { in intel_bts_recording_options()
162 opts->mmap_pages = KiB(256) / page_size; in intel_bts_recording_options()
164 if (!opts->auxtrace_snapshot_size) in intel_bts_recording_options()
165 opts->auxtrace_snapshot_size = in intel_bts_recording_options()
166 opts->auxtrace_mmap_pages * (size_t)page_size; in intel_bts_recording_options()
167 if (!opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
168 size_t sz = opts->auxtrace_snapshot_size; in intel_bts_recording_options()
171 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); in intel_bts_recording_options()
173 if (opts->auxtrace_snapshot_size > in intel_bts_recording_options()
174 opts->auxtrace_mmap_pages * (size_t)page_size) { in intel_bts_recording_options()
176 opts->auxtrace_snapshot_size, in intel_bts_recording_options()
177 opts->auxtrace_mmap_pages * (size_t)page_size); in intel_bts_recording_options()
180 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
185 opts->auxtrace_snapshot_size); in intel_bts_recording_options()
189 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
191 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_bts_recording_options()
193 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_bts_recording_options()
194 if (opts->mmap_pages == UINT_MAX) in intel_bts_recording_options()
195 opts->mmap_pages = KiB(256) / page_size; in intel_bts_recording_options()
200 if (opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
201 size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; in intel_bts_recording_options()
204 if (opts->auxtrace_snapshot_mode) in intel_bts_recording_options()
231 if (opts->full_auxtrace) { in intel_bts_recording_options()
251 struct record_opts *opts, in intel_bts_parse_snapshot_options() argument
265 opts->auxtrace_snapshot_mode = true; in intel_bts_parse_snapshot_options()
266 opts->auxtrace_snapshot_size = snapshot_size; in intel_bts_parse_snapshot_options()