Re: [RFC v2 2/7] perf: add AUX area to ring buffer for raw data streams

From: Peter Zijlstra
Date: Tue Jun 24 2014 - 13:20:10 EST


On Wed, Jun 11, 2014 at 06:41:45PM +0300, Alexander Shishkin wrote:
> + /*
> + * Set up pmu-private data structures for an AUX area
> + */
> + void *(*setup_aux) (int cpu, void **pages,
> + int nr_pages, bool overwrite);
> + /* optional */
> +
> + /*
> + * Free pmu-private AUX data structures
> + */
> + void (*free_aux) (void *aux); /* optional */

I was hoping you could replace those with a PERF_CAP_AUX or something
and then have one generic allocation routine like you provide in the
subsequent patches.

Attachment: pgpXO28QAySkF.pgp
Description: PGP signature