From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753771Ab3KEHbY (ORCPT ); Tue, 5 Nov 2013 02:31:24 -0500 Received: from LGEMRELSE1Q.lge.com ([156.147.1.111]:52493 "EHLO LGEMRELSE1Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967Ab3KEHbX (ORCPT ); Tue, 5 Nov 2013 02:31:23 -0500 X-AuditID: 9c93016f-b7bc7ae0000010eb-c0-52789eca7cf5 From: Namhyung Kim To: Ingo Molnar Cc: Pekka Enberg , Arnaldo Carvalho de Melo , Peter Zijlstra , Paul Mackerras , Namhyung Kim , LKML , Frederic Weisbecker , Stephane Eranian , Jiri Olsa , Rodrigo Campos , Arun Sharma Subject: Re: [RFC/PATCHSET 00/14] perf report: Add support to accumulate hist periods (v2) References: <1383202576-28141-1-git-send-email-namhyung@kernel.org> <20131031080932.GA8479@gmail.com> <87vc0c4ny2.fsf@sejong.aot.lge.com> <20131101075502.GA25547@gmail.com> <874n7w4gtm.fsf@sejong.aot.lge.com> <20131101092759.GC27063@gmail.com> Date: Tue, 05 Nov 2013 16:31:21 +0900 In-Reply-To: <20131101092759.GC27063@gmail.com> (Ingo Molnar's message of "Fri, 1 Nov 2013 10:27:59 +0100") Message-ID: <87bo1zz4mu.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, On Fri, 1 Nov 2013 10:27:59 +0100, Ingo Molnar wrote: > * Namhyung Kim wrote: > >> >> > 2) >> >> > >> >> > Is it possible to configure the default 'report -g' style, so that >> >> > people who'd like to use it all the time don't have to type '-g >> >> > cumulative' all the time? >> >> >> >> Hmm.. maybe I can add support for the 'report.call-graph' config option. >> > >> > If we display your new 'total' field by default then it's not as >> > pressing to me :) >> >> Do you mean -g cumulative without 'self' column? > > So, if by default we display both 'self' and 'total' and sort by > 'total', then I'm personally a happy camper: while it's a change of > the default perf report output, it's also a step forward. > > But some people might complain about it once this hits v3.13 (or > v3.14) and might want to hide individual columns and have different > sorting preferences. > > So out of defensive caution you might want to provide toggles for > such things, maybe even generalize it a bit to allow arbitrary > hiding/display of individual colums in perf report. > > That would probably also make it easier to do minimal tweaks to the > upstream reporting defaults. Okay, so what would the interface look like? I think it'd better to separate the option and pass column and (optional) sort key argument. --cumulative both,total (default) --cumulative both,self --cumulative total --cumulative self (meaningless?) Maybe we need a config option and a single letter option for the default case like --call-graph and -g options do. What do you think? Thanks, Namhyung