Lines Matching refs:opts
95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config() argument
100 bool sample_id = opts->sample_id; in evlist__config()
106 if (opts->group) in evlist__config()
110 opts->no_inherit = true; in evlist__config()
115 evsel__config(evsel, opts, callchain); in evlist__config()
124 if (opts->full_auxtrace) { in evlist__config()
157 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
159 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
160 bool user_interval = opts->user_interval != ULLONG_MAX; in record_opts__config_freq()
169 opts->default_interval = opts->user_interval; in record_opts__config_freq()
171 opts->freq = opts->user_freq; in record_opts__config_freq()
176 if (opts->default_interval) in record_opts__config_freq()
177 opts->freq = 0; in record_opts__config_freq()
178 else if (opts->freq) { in record_opts__config_freq()
179 opts->default_interval = opts->freq; in record_opts__config_freq()
191 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq()
192 if (opts->strict_freq) { in record_opts__config_freq()
203 max_rate, opts->freq, max_rate); in record_opts__config_freq()
205 opts->freq = max_rate; in record_opts__config_freq()
212 if (max_rate < opts->freq) { in record_opts__config_freq()
216 opts->freq, max_rate); in record_opts__config_freq()
217 opts->freq = max_rate; in record_opts__config_freq()
223 int record_opts__config(struct record_opts *opts) in record_opts__config() argument
225 return record_opts__config_freq(opts); in record_opts__config()
278 struct record_opts *opts = opt->value; in record__parse_freq() local
293 opts->user_freq = freq; in record__parse_freq()