# Re: \[PATCHSET v2 cgroup/for-4.6\] cgroup, perf\_event: make perf\_event work on v2 hierarchy

- From: Tejun Heo \<hidden\>
- Date: 2016-03-03 15:06:59 
- List: cgroups
- Page: https://ratatoskr.run/cgroups/2016/03/4700515
- Thread: https://ratatoskr.run/cgroups/2016/02/4693621/t.md

```text
Hello,

On Wed, Feb 24, 2016 at 05:12:53PM -0500, Tejun Heo wrote:
> This patchset makes perf_event implicitly enabled on the v2 hierarchy
> so that cgroup v2 path automatically works with "perf record --cgroup"
> as long as perf_event controller is available and not mounted on a
> legacy hierarchy.  "perf record" is updated so that it searches for
> both v1 hierarchy w/ perf_event on it and v2 hierarchy.  The v1
> hierarchy is used if exists; otherwise, v2 is used, making the
> transition transparent to users.

All the prerequisite patches are now available in cgroup/for-4.6
branch.

 git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-4.6

If the perf_event changes look okay, we can either apply the first
patch to cgroup/for-4.6, pull that into perf tree and aply the perf
change there or route both through cgroup tree.  Ideas?

Thanks.

-- 
tejun
```
