[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130626103303.GB28407@twins.programming.kicks-ass.net>
Date: Wed, 26 Jun 2013 12:33:03 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: Stephane Eranian <eranian@...gle.com>,
LKML <linux-kernel@...r.kernel.org>,
"mingo@...e.hu" <mingo@...e.hu>,
"ak@...ux.intel.com" <ak@...ux.intel.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung.kim@....com>
Subject: Re: [PATCH 0/8] perf: add ability to sample physical data addresses
On Tue, Jun 25, 2013 at 12:51:23PM +0200, Ingo Molnar wrote:
> A syscall (ioctl?) to dump all current vmas into the mmap update stream
> (to form a starting point) might be handy - that would remove the
> fragility and overhead of parsing /proc/ details.
Its more difficult than that though :/ Suppose not all mmap events fit
in the output buffer and you're not able to read from the buffer because
you're stuck in the ioctl().
This means we need to either force userspace to use threads to reliably
use the feature; or complicate the ioctl() to allow vma ranges -- which
introduces an inherent race window etc..
Neither option are really pretty and we already have the maps parse code
-- also its not _that_ hard to parse either.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists