Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1253877

Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order only if --children is enabled

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order only if --children is enabled
Date 2015-10-22 16:40 +0200
Message-ID <qmpc6-5kr-9@gated-at.bofh.it> (permalink)
References <qmhxU-2nM-7@gated-at.bofh.it> <qmhxU-2nM-13@gated-at.bofh.it> <qmoSL-4U2-21@gated-at.bofh.it> <qmp2p-56v-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Em Thu, Oct 22, 2015 at 11:22:40PM +0900, Namhyung Kim escreveu:
> On Thu, Oct 22, 2015 at 11:13 PM, Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> > Em Thu, Oct 22, 2015 at 03:28:50PM +0900, Namhyung Kim escreveu:
> >> +++ b/tools/perf/util/util.c
> >> @@ -19,7 +19,7 @@
> >>  struct callchain_param       callchain_param = {
> >>       .mode   = CHAIN_GRAPH_ABS,
> >> -     .order  = ORDER_CALLER,
> >> +     .order  = ORDER_CALLEE,

> > So, this isn't a revert of the previous default change, i.e. previously
> > we used CHAIN_GRAPH_REL, should we keep CHAIN_GRAPH_ABS + callee?
 
> Yes, it's not a revert.  I intentionally didn't change the print type.

Ok, its just that I don't recall seeing the part of the discussion about
keeping the change from REL to ABS.
 
> > Also you forgot to fix the docs to mention this new default, I did it
> > and the resulting patch, still with GRAPH_ABS follows:
 
> This is not simple.  As Brendan said, --children is default on, so
> users will see 'caller' ordering that's why I didn't change the doc.

Ok, but the default as it stands after applying this patch is "graph,
calee", so the docs should be changed to reflect that, yes, its not just
that, we need to tell, in the --children doc, that it defaults to
"caller".

Will we also flip the default to --no-children? I would advocate that,
together with showing a info box telling the user about this change and
how to ask for it, including instructions on how to do that via
~/.perfconfig.

> But I should mention it'll use 'callee' ordering when --no-chlidren.
> I'm about to send doc fix patch Ingo requested, so please leave this
> patch as is.

Ok, its just that I thought you was already asleep and was wanting to
make progress on this 8-)

Will wait for your patches and instead try to fix the annotation bug
that leads 'perf report --tui -S some_symbol_name' to exit without
printing anything, that Ingo reported, only happens in --tui, because
--stdio doesn't collects annotation info...

- Arnaldo
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order only if --children is enabled Namhyung Kim <namhyung@kernel.org> - 2015-10-22 08:30 +0200
  Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Ingo Molnar <mingo@kernel.org> - 2015-10-22 09:40 +0200
    Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Namhyung Kim <namhyung@kernel.org> - 2015-10-22 09:40 +0200
      Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Brendan Gregg <brendan.d.gregg@gmail.com> - 2015-10-22 11:50 +0200
        Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-22 16:10 +0200
      Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Frederic Weisbecker <fweisbec@gmail.com> - 2015-10-22 14:30 +0200
  [RFC/PATCH RESEND 3/3] perf tools: Defaults to 'caller' callchain order only if --children is enabled Namhyung Kim <namhyung@kernel.org> - 2015-10-22 09:50 +0200
    Re: [RFC/PATCH RESEND 3/3] perf tools: Defaults to 'caller'  callchain order only if --children is enabled Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-22 20:40 +0200
    [tip:perf/core] perf tools: Defaults to 'caller'   callchain order only if --children is enabled tip-bot for Namhyung Kim <tipbot@zytor.com> - 2015-10-23 10:40 +0200
  Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Frederic Weisbecker <fweisbec@gmail.com> - 2015-10-22 14:20 +0200
  Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-22 16:20 +0200
    Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Namhyung Kim <namhyung@kernel.org> - 2015-10-22 16:30 +0200
      Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-22 16:40 +0200
        Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Namhyung Kim <namhyung@kernel.org> - 2015-10-22 18:00 +0200
          Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order  only if --children is enabled Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-22 18:30 +0200

csiph-web