Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbaLPRQv (ORCPT ); Tue, 16 Dec 2014 12:16:51 -0500 Received: from mail-qc0-f172.google.com ([209.85.216.172]:53288 "EHLO mail-qc0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbaLPRQu (ORCPT ); Tue, 16 Dec 2014 12:16:50 -0500 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Tue, 16 Dec 2014 12:17:10 -0500 (EST) To: eranian@gmail.com cc: Arnaldo Carvalho de Melo , LKML , Ingo Molnar , Peter Zijlstra , Stephane Eranian , Tejun Heo , Li Zefan Subject: Re: [perf tool] cgroup support broken on Debian? In-Reply-To: Message-ID: References: <20141215220150.GP9845@kernel.org> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Dec 2014, Stephane Eranian wrote: > On Mon, Dec 15, 2014 at 11:01 PM, Arnaldo Carvalho de Melo wrote: > fs is visible. The cgroup file system type is not there anymore. They are using > tmpfs which is not ideal to detect just cgroup. Looks like now, we have to look > at the mount point which is flaky. The trivial fix is to just always assume things will be under /sys/fs/cgroup which looks like to be the new official mount point. This will break on older systems though, or systems that mount cgroupfs in multiple locations. Another alternative is to change the interface to require the full cgroupfs pathname as an argument to -G > Yes, the error needs to be improved or even added. The following common > errors are encountered: > > - -G option requires -a (system-wide), otherwise it does not work at all > - -G option must always be specified AFTER the ALL event list > - -G and explicit event groups is not well supported by the tool yet. > An event group must have the same cgroup. > - Cgroups are specified per event > - -G cgroup order follows the event order: -e e1, e2, e3 -G g1,g2,g3: > g1->e1, g2->e2, g3->e3 > - It is possible to indicate no cgroup with -G: -e e1,e2,e3 -G g1,,g3 > using empty group (,,) I'll see if I can get a patch together that impements this. Vince -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/