Re: [PATCH] cgroup, perf_event: Fix perf cgroup hierarchy support

2017-10-30 Thread Peter Zijlstra
On Sat, Oct 28, 2017 at 09:49:37AM -0700, Tejun Heo wrote: > 864c2357ca89 ("perf/core: Do not set cpuctx->cgrp for unscheduled > cgroups") made list_update_cgroup_event() skip setting cpuctx->cgrp if > no cgroup event targets %current's cgroup. This breaks perf_event's > hierarchical support becau

[PATCH] cgroup, perf_event: Fix perf cgroup hierarchy support

2017-10-28 Thread Tejun Heo
864c2357ca89 ("perf/core: Do not set cpuctx->cgrp for unscheduled cgroups") made list_update_cgroup_event() skip setting cpuctx->cgrp if no cgroup event targets %current's cgroup. This breaks perf_event's hierarchical support because events which target one of the ancestors get ignored. Fix it by