[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120518140945.GN20215@aftab.osrc.amd.com>
Date: Fri, 18 May 2012 16:09:45 +0200
From: Borislav Petkov <bp@...64.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...e.hu>,
Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>,
Borislav Petkov <borislav.petkov@....com>
Subject: Re: [PATCH 1/2] perf: Add persistent event facilities
On Fri, May 18, 2012 at 03:37:47PM +0200, Peter Zijlstra wrote:
> On Fri, 2012-05-18 at 14:55 +0200, Borislav Petkov wrote:
> > It is an interesting question how we handle that RO/RW thing?
>
> RO buffers overwrite, RW buffers loose events.
>
> We could allow both for persistent under the constraints:
>
> VM_SHARED - must imply !VM_WRITE since multiple people writing to the
> control page will get 'interesting' very fast.
Ok, I get that one.
> !VM_SHARED - must fail mmap() of the debugfs file if there's already
> an existing user.
What happens here if a second user wants to enable a second set of
persistent events, allocate a second set of per-CPU buffers?
> Note that even RW buffers only allows writes to the control page, a
> write to the actual data itself will generate a fault.
Ok.
--
Regards/Gruss,
Boris.
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551
--
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