[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160627155002.GD30909@twins.programming.kicks-ass.net>
Date: Mon, 27 Jun 2016 17:50:02 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Aravinda Prasad <aravinda@...ux.vnet.ibm.com>
Cc: linux-kernel@...r.kernel.org, rostedt@...dmis.org,
mingo@...hat.com, paulus@...ba.org, acme@...nel.org,
ebiederm@...ssion.com, hbathini@...ux.vnet.ibm.com,
ananth@...ibm.com
Subject: Re: [RFC PATCH 2/2] perf: Filter events based on perf-namespace
On Tue, Jun 14, 2016 at 10:19:51PM +0530, Aravinda Prasad wrote:
> Whenever perf tool is executed inside a container, this
> patch restricts the events to the perf-namespace in which
> the perf tool is executing.
>
> This patch is based on the existing support available
> for tracing with cgroups.
>
> TODO:
> - Avoid code duplication.
Can't you, at perf_event_open() time, convert a per-cpu event into a
per-cpu-per-cgroup event for these namespace thingies?
That seems to immediately and completely remove all that duplication.
Powered by blists - more mailing lists