From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752718AbbJLP1m (ORCPT ); Mon, 12 Oct 2015 11:27:42 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:33531 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbbJLP1g (ORCPT ); Mon, 12 Oct 2015 11:27:36 -0400 Date: Mon, 12 Oct 2015 17:27:33 +0200 From: Frederic Weisbecker To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , Borislav Petkov , Chandler Carruth , David Ahern , Jiri Olsa , Namhyung Kim , Stephane Eranian , Wang Nan Subject: Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller' Message-ID: <20151012152732.GB29048@lerouge> References: <1444079018-31421-1-git-send-email-acme@kernel.org> <1444079018-31421-14-git-send-email-acme@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1444079018-31421-14-git-send-email-acme@kernel.org> 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 On Mon, Oct 05, 2015 at 06:03:35PM -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Which is the most common default found in other similar tools. > > Requested-by: Ingo Molnar > Cc: Adrian Hunter > Cc: Borislav Petkov > Cc: Chandler Carruth > Cc: David Ahern > Cc: Frederic Weisbecker > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Stephane Eranian > Cc: Wang Nan > Link: https://www.youtube.com/watch?v=nXaxk27zwlk > Link: http://lkml.kernel.org/n/tip-v8lq36aispvdwgxdmt9p9jd9@git.kernel.org > Signed-off-by: Arnaldo Carvalho de Melo > --- > tools/perf/Documentation/perf-report.txt | 2 +- > tools/perf/builtin-report.c | 4 ++-- > tools/perf/util/util.c | 4 ++-- > 3 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt > index ce499035e6d8..e4fdeeb51123 100644 > --- a/tools/perf/Documentation/perf-report.txt > +++ b/tools/perf/Documentation/perf-report.txt > @@ -192,7 +192,7 @@ OPTIONS > when available. Usually more convenient to use --branch-history > for this. > > - Default: fractal,0.5,callee,function. > + Default: graph,0.5,caller > > --children:: > Accumulate callchain of children to parent entry so that then can > diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c > index b5623639f67d..3b23b25d1589 100644 > --- a/tools/perf/builtin-report.c > +++ b/tools/perf/builtin-report.c > @@ -633,7 +633,7 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) > bool has_br_stack = false; > int branch_mode = -1; > bool branch_call_mode = false; > - char callchain_default_opt[] = "fractal,0.5,callee"; > + char callchain_default_opt[] = "graph,0.5,caller"; I'm a bit worried about that. I find callee order usually useful in most cases. People tend to run perf to zoom in the culprit of a performance issue. > const char * const report_usage[] = { > "perf report []", > NULL > @@ -701,7 +701,7 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) > "Only display entries with parent-match"), > OPT_CALLBACK_DEFAULT('g', "call-graph", &report, "output_type,min_percent[,print_limit],call_order[,branch]", > "Display callchains using output_type (graph, flat, fractal, or none) , min percent threshold, optional print limit, callchain order, key (function or address), add branches. " > - "Default: fractal,0.5,callee,function", &report_parse_callchain_opt, callchain_default_opt), > + "Default: graph,0.5,caller", &report_parse_callchain_opt, callchain_default_opt), > OPT_BOOLEAN(0, "children", &symbol_conf.cumulate_callchain, > "Accumulate callchains of children and show total overhead as well"), > OPT_INTEGER(0, "max-stack", &report.max_stack, > diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c > index ce465b259e52..c1bf9ff210b0 100644 > --- a/tools/perf/util/util.c > +++ b/tools/perf/util/util.c > @@ -17,9 +17,9 @@ > #include "callchain.h" > > struct callchain_param callchain_param = { > - .mode = CHAIN_GRAPH_REL, > + .mode = CHAIN_GRAPH_ABS, And this worries me as well :-) > .min_percent = 0.5, > - .order = ORDER_CALLEE, > + .order = ORDER_CALLER, > .key = CCKEY_FUNCTION > }; > > -- > 2.1.0 >