From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754245AbcCDNc0 (ORCPT ); Fri, 4 Mar 2016 08:32:26 -0500 Received: from mail.kernel.org ([198.145.29.136]:59613 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750966AbcCDNcY (ORCPT ); Fri, 4 Mar 2016 08:32:24 -0500 Date: Fri, 4 Mar 2016 10:32:19 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Andi Kleen , Stephane Eranian , Wang Nan Subject: Re: [RFC] Re: [PATCHSET 0/8] perf tools: Support multiple keys in a single hierarchy level (v1) Message-ID: <20160304133219.GX3604@kernel.org> References: <1456935128-31299-1-git-send-email-namhyung@kernel.org> <20160302162507.GT3604@kernel.org> <20160302231636.GA19162@sejong> <20160303130815.GU3604@kernel.org> <20160303235051.GA16631@sejong> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160303235051.GA16631@sejong> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Mar 04, 2016 at 08:50:51AM +0900, Namhyung Kim escreveu: > On Thu, Mar 03, 2016 at 10:08:15AM -0300, Arnaldo Carvalho de Melo wrote: > > We should try to use tokens that already have some strong meaning > > associated to them instead of using those that are more easily > > available, otherwise our mumbo jumbo will grow even more unwieldly 8-/ > > In fact I think that in this case we could even make it look more like > > natural languages and use: > > perf report --hierarchy -s 'prev_pid,prev_comm;next_pid,next_comm' > > To ask for: > > prev_pid prev_comm > > next_pid next_comm > > - 1234 bash > > 5678 firefox > > + 8912 hexchat > > I.e. if ';' is present, it is the separator for each hierarchy level, > > with ',' being used for stating the per-hierarchy level fields. > If it's not a common operation and we have used '{ }' for the event > groups, why not using it here too? > $ perf report --hierarchy -s '{prev_pid,prev_comm},{next_pid,next_comm}' > It's more verbose but more intuitive IMHO. Right, we would be using {} consistently as a way of grouping entities. I'm fine with that. - Arnaldo