Lines Matching refs:opts

91 arm_spe_snapshot_resolve_auxtrace_defaults(struct record_opts *opts,  in arm_spe_snapshot_resolve_auxtrace_defaults()  argument
108 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults()
110 opts->auxtrace_mmap_pages = MiB(4) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
112 opts->auxtrace_mmap_pages = KiB(128) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
113 if (opts->mmap_pages == UINT_MAX) in arm_spe_snapshot_resolve_auxtrace_defaults()
114 opts->mmap_pages = KiB(256) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
116 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) { in arm_spe_snapshot_resolve_auxtrace_defaults()
117 opts->mmap_pages = KiB(256) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
124 if (!opts->auxtrace_snapshot_size) in arm_spe_snapshot_resolve_auxtrace_defaults()
125 opts->auxtrace_snapshot_size = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
131 if (!opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults()
132 size_t sz = opts->auxtrace_snapshot_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
135 opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); in arm_spe_snapshot_resolve_auxtrace_defaults()
141 struct record_opts *opts) in arm_spe_recording_options() argument
163 opts->full_auxtrace = true; in arm_spe_recording_options()
167 if (!opts->full_auxtrace) in arm_spe_recording_options()
173 if (opts->auxtrace_snapshot_mode) { in arm_spe_recording_options()
178 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) in arm_spe_recording_options()
179 arm_spe_snapshot_resolve_auxtrace_defaults(opts, privileged); in arm_spe_recording_options()
184 if (opts->auxtrace_snapshot_size > opts->auxtrace_mmap_pages * (size_t)page_size) { in arm_spe_recording_options()
186 opts->auxtrace_snapshot_size, in arm_spe_recording_options()
187 opts->auxtrace_mmap_pages * (size_t)page_size); in arm_spe_recording_options()
194 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in arm_spe_recording_options()
201 if (!opts->auxtrace_mmap_pages) { in arm_spe_recording_options()
203 opts->auxtrace_mmap_pages = MiB(4) / page_size; in arm_spe_recording_options()
205 opts->auxtrace_mmap_pages = KiB(128) / page_size; in arm_spe_recording_options()
206 if (opts->mmap_pages == UINT_MAX) in arm_spe_recording_options()
207 opts->mmap_pages = KiB(256) / page_size; in arm_spe_recording_options()
212 if (opts->auxtrace_mmap_pages) { in arm_spe_recording_options()
213 size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_recording_options()
223 if (opts->auxtrace_snapshot_mode) in arm_spe_recording_options()
225 opts->auxtrace_snapshot_size); in arm_spe_recording_options()
259 if (!record_opts__no_switch_events(opts)) in arm_spe_recording_options()
267 struct record_opts *opts, in arm_spe_parse_snapshot_options() argument
279 opts->auxtrace_snapshot_mode = true; in arm_spe_parse_snapshot_options()
280 opts->auxtrace_snapshot_size = snapshot_size; in arm_spe_parse_snapshot_options()