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()
103 opts->no_inherit = true; in evlist__config()
108 evsel__config(evsel, opts, callchain); in evlist__config()
117 if (opts->full_auxtrace || opts->sample_identifier) { in evlist__config()
150 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
152 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
153 bool user_interval = opts->user_interval != ULLONG_MAX; in record_opts__config_freq()
162 opts->default_interval = opts->user_interval; in record_opts__config_freq()
164 opts->freq = opts->user_freq; in record_opts__config_freq()
169 if (opts->default_interval) in record_opts__config_freq()
170 opts->freq = 0; in record_opts__config_freq()
171 else if (opts->freq) { in record_opts__config_freq()
172 opts->default_interval = opts->freq; in record_opts__config_freq()
184 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq()
185 if (opts->strict_freq) { in record_opts__config_freq()
196 max_rate, opts->freq, max_rate); in record_opts__config_freq()
198 opts->freq = max_rate; in record_opts__config_freq()
205 if (max_rate < opts->freq) { in record_opts__config_freq()
209 opts->freq, max_rate); in record_opts__config_freq()
210 opts->freq = max_rate; in record_opts__config_freq()
216 int record_opts__config(struct record_opts *opts) in record_opts__config() argument
218 return record_opts__config_freq(opts); in record_opts__config()
274 struct record_opts *opts = opt->value; in record__parse_freq() local
289 opts->user_freq = freq; in record__parse_freq()