• Home
  • Raw
  • Download

Lines Matching refs:opts

194 					 struct record_opts *opts,  in cs_etm_parse_snapshot_options()  argument
208 opts->auxtrace_snapshot_mode = true; in cs_etm_parse_snapshot_options()
209 opts->auxtrace_snapshot_size = snapshot_size; in cs_etm_parse_snapshot_options()
254 struct record_opts *opts) in cs_etm_recording_options() argument
266 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in cs_etm_recording_options()
268 if (!record_opts__no_switch_events(opts) && in cs_etm_recording_options()
270 opts->record_switch_events = true; in cs_etm_recording_options()
282 opts->full_auxtrace = true; in cs_etm_recording_options()
294 if (opts->use_clockid) { in cs_etm_recording_options()
301 if (opts->auxtrace_snapshot_mode) { in cs_etm_recording_options()
306 if (!opts->auxtrace_snapshot_size && in cs_etm_recording_options()
307 !opts->auxtrace_mmap_pages) { in cs_etm_recording_options()
309 opts->auxtrace_mmap_pages = MiB(4) / page_size; in cs_etm_recording_options()
311 opts->auxtrace_mmap_pages = in cs_etm_recording_options()
313 if (opts->mmap_pages == UINT_MAX) in cs_etm_recording_options()
314 opts->mmap_pages = KiB(256) / page_size; in cs_etm_recording_options()
316 } else if (!opts->auxtrace_mmap_pages && !privileged && in cs_etm_recording_options()
317 opts->mmap_pages == UINT_MAX) { in cs_etm_recording_options()
318 opts->mmap_pages = KiB(256) / page_size; in cs_etm_recording_options()
325 if (!opts->auxtrace_snapshot_size) { in cs_etm_recording_options()
326 opts->auxtrace_snapshot_size = in cs_etm_recording_options()
327 opts->auxtrace_mmap_pages * (size_t)page_size; in cs_etm_recording_options()
335 if (!opts->auxtrace_mmap_pages) { in cs_etm_recording_options()
336 size_t sz = opts->auxtrace_snapshot_size; in cs_etm_recording_options()
339 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); in cs_etm_recording_options()
343 if (opts->auxtrace_snapshot_size > in cs_etm_recording_options()
344 opts->auxtrace_mmap_pages * (size_t)page_size) { in cs_etm_recording_options()
346 opts->auxtrace_snapshot_size, in cs_etm_recording_options()
347 opts->auxtrace_mmap_pages * (size_t)page_size); in cs_etm_recording_options()
352 if (!opts->auxtrace_snapshot_size || in cs_etm_recording_options()
353 !opts->auxtrace_mmap_pages) { in cs_etm_recording_options()
360 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { in cs_etm_recording_options()
362 opts->auxtrace_mmap_pages = MiB(4) / page_size; in cs_etm_recording_options()
364 opts->auxtrace_mmap_pages = KiB(128) / page_size; in cs_etm_recording_options()
365 if (opts->mmap_pages == UINT_MAX) in cs_etm_recording_options()
366 opts->mmap_pages = KiB(256) / page_size; in cs_etm_recording_options()
372 if (opts->auxtrace_mmap_pages) { in cs_etm_recording_options()
374 size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; in cs_etm_recording_options()
377 opts->auxtrace_mmap_pages > max_page) { in cs_etm_recording_options()
378 opts->auxtrace_mmap_pages = max_page; in cs_etm_recording_options()
390 if (opts->auxtrace_snapshot_mode) in cs_etm_recording_options()
392 opts->auxtrace_snapshot_size); in cs_etm_recording_options()
415 if (opts->full_auxtrace) { in cs_etm_recording_options()