Re: [PATCH] [perf] Add inverted call graph report support.

From: Frederic Weisbecker
Date: Wed Jun 15 2011 - 18:41:59 EST


On Wed, Jun 15, 2011 at 10:15:18AM +0200, Ingo Molnar wrote:
>
> * Sam Liao <phyomh@xxxxxxxxx> wrote:
>
> > On Wed, Jun 15, 2011 at 6:15 AM, Arun Sharma <asharma@xxxxxx> wrote:
> > > Sam,
> > >
> > > $ perf report -g graph,0.5,caller --sort pid
> > >
> > > is a bit hard to type. Perhaps add a simpler command line option
> > > that has the same effect?
> > >
> > >  -Arun
> > >
> > >
> >
> > How about perf report -g [caller/callee,][graph,0.1] -s pid
> >
> > or remove the order of the options for "-g"
>
> We could alias the -G flag to the inverse graph.

Agreed.
-g could map to fine tuning of callchain parameters like it does right now
and we can use -G as a shortcut for inverted callchain keeping the default
settings.

> Plus it would be nice to allow a .perfconfig flag for people to
> configure their desired default reporting parameters.

Yeah.

It would be also nice to have a "caller" sorting mode:

perf report -G -s caller

This can be useful to get the entire tree of calls for each callers.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/