From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752004AbdBBSrj (ORCPT ); Thu, 2 Feb 2017 13:47:39 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33895 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbdBBSrf (ORCPT ); Thu, 2 Feb 2017 13:47:35 -0500 Date: Thu, 2 Feb 2017 13:47:32 -0500 From: Tejun Heo To: lizefan@huawei.com, hannes@cmpxchg.org, a.p.zijlstra@chello.nl, mingo@redhat.com, acme@kernel.org Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH REPOST 2/2] cgroup, perf_event: make perf_event controller work on cgroup2 hierarchy Message-ID: <20170202184732.GA7917@htj.duckdns.org> References: <1456351975-1899-1-git-send-email-tj@kernel.org> <1456351975-1899-3-git-send-email-tj@kernel.org> <20170129193520.GA18336@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170129193520.GA18336@mtj.duckdns.org> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 29, 2017 at 02:35:20PM -0500, Tejun Heo wrote: > perf_event is a utility controller whose primary role is identifying > cgroup membership to filter perf events; however, because it also > tracks some per-css state, it can't be replaced by pure cgroup > membership test. Mark the controller as implicitly enabled on the > default hierarchy so that perf events can always be filtered based on > cgroup v2 path as long as the controller is not mounted on a legacy > hierarchy. > > "perf record" is updated accordingly so that it searches for both v1 > and v2 hierarchies. A v1 hierarchy is used if perf_event is mounted > on it; otherwise, it uses the v2 hierarchy. > > v2: Doc updated to reflect more flexible rebinding behavior. > > Signed-off-by: Tejun Heo > Acked-by: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo Applied to cgroup/for-4.11. Thanks. -- tejun