Re: [perfmon2] [PATCH 1/2] perf_events: add cgroup support (v9)

2011-02-15 Thread stephane eranian
On Tue, Feb 15, 2011 at 3:55 PM, Peter Zijlstra wrote: > On Mon, 2011-02-14 at 11:20 +0200, Stephane Eranian wrote: >> +                       if (mode & PERF_CGROUP_SWOUT) { >> +                               cpu_ctx_sched_out(cpuctx, EVENT_ALL); >> +                               /* >> +        

Re: [perfmon2] [PATCH 1/2] perf_events: add cgroup support (v9)

2011-02-15 Thread Peter Zijlstra
On Mon, 2011-02-14 at 11:20 +0200, Stephane Eranian wrote: > + if (mode & PERF_CGROUP_SWOUT) { > + cpu_ctx_sched_out(cpuctx, EVENT_ALL); > + /* > +* must not be done before ctxswout dur

[perfmon2] [PATCH 1/2] perf_events: add cgroup support (v9)

2011-02-14 Thread Stephane Eranian
This kernel patch adds the ability to filter monitoring based on container groups (cgroups). This is for use in per-cpu mode only. The cgroup to monitor is passed as a file descriptor in the pid argument to the syscall. The file descriptor must be opened to the cgroup name in the cgroup files