/* * The AUX buffer size should be set properly to avoid * overflow of samples if it is not set explicitly. * DEFAULT_AUX_PAGES is an proper size when sampling frequency * is DEFAULT_FREQ. It is expected to hold about 1/2 second * of sampling data. The size used for AUX buffer will scale * according to the specified frequency and DEFAULT_FREQ.
*/ if (!opts->auxtrace_mmap_pages) { if (opts->user_freq != UINT_MAX)
factor = (opts->user_freq + DEFAULT_FREQ
- 1) / DEFAULT_FREQ;
pages = DEFAULT_AUX_PAGES * factor;
opts->auxtrace_mmap_pages = roundup_pow_of_two(pages);
}
/* * auxtrace_record__init is called when perf record * check if the event really need auxtrace
*/ struct auxtrace_record *auxtrace_record__init(struct evlist *evlist, int *err)
{ struct auxtrace_record *aux; struct evsel *pos; int diagnose = 0;
*err = 0; if (evlist->core.nr_entries == 0) return NULL;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.