Re: [PATCH] perf_events: improve DS/BTS/PEBS buffer allocation

From: Peter Zijlstra
Date: Mon Sep 13 2010 - 15:34:49 EST


On Mon, 2010-09-13 at 15:31 -0400, Mathieu Desnoyers wrote:
> > Ok, so can we play the same trick you're playing with the sampling
> > buffer, i.e., you use alloc_pages_node() for one page at a time, and
> > then you stitch them on demand via SW?
>
> Well, a thought is striking me: it sounds like you are re-doing YAORB (short
> for Yet Another Ring Buffer,

He's not.. the hardware needs a large (virtually) contiguous region to
poke data into, we need to read it out from NMI context.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/