* perf tools: Introduce new -P/--parent-deep report option
@ 2013-06-26 14:58 Arnaldo Carvalho de Melo
2013-06-27 5:29 ` Namhyung Kim
0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2013-06-26 14:58 UTC (permalink / raw)
To: Jiri Olsa; +Cc: Linux Kernel Mailing List
Hi Jiri,
About the patch below, can't this be solved by using a regex
instead of a simple substring search instead of adding a new command
line option?
- Arnaldo
commit 5b42ff035ec784c5c42c4a6bb9e7fada882f097e
Author: Jiri Olsa <jolsa@redhat.com>
Date: Tue Jun 18 18:31:50 2013 +0200
perf tools: Introduce new -P/--parent-deep report option
Introducing new -P/--parent-deep report option. It does the
same as '-p' but it force the deep search of the callchain
and looks for the deepest possible match.
The -p option searches for the first match of the parent
pattern in the callchain.
$ perf report -i perf.data.delete -p perf_session__delete -s parent
+ 99.51% [other]
+ 0.46% perf_session__delete_dead_threads
+ 0.03% perf_session__delete
+ 0.00% perf_session__delete_threads
so we got multiple 'different' matches instancies, while
they all belong under perf_session__delete function:
$ perf report -i perf.data.delete -P perf_session__delete -s parent
+ 99.51% [other]
+ 0.49% perf_session__delete
NOTE the 'p' vs 'P' difference in above commands above.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: perf tools: Introduce new -P/--parent-deep report option
2013-06-26 14:58 perf tools: Introduce new -P/--parent-deep report option Arnaldo Carvalho de Melo
@ 2013-06-27 5:29 ` Namhyung Kim
2013-06-27 9:21 ` Jiri Olsa
0 siblings, 1 reply; 3+ messages in thread
From: Namhyung Kim @ 2013-06-27 5:29 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: Jiri Olsa, Linux Kernel Mailing List
Hi Arnaldo,
On Wed, 26 Jun 2013 11:58:53 -0300, Arnaldo Carvalho de Melo wrote:
> Hi Jiri,
>
> About the patch below, can't this be solved by using a regex
> instead of a simple substring search instead of adding a new command
> line option?
???
IIUC he reused parent_regex for this.
And I think we can have the same effect by using -G and -p option
together without this new option.
Thanks,
Namhyung
>
> - Arnaldo
>
> commit 5b42ff035ec784c5c42c4a6bb9e7fada882f097e
> Author: Jiri Olsa <jolsa@redhat.com>
> Date: Tue Jun 18 18:31:50 2013 +0200
>
> perf tools: Introduce new -P/--parent-deep report option
>
> Introducing new -P/--parent-deep report option. It does the
> same as '-p' but it force the deep search of the callchain
> and looks for the deepest possible match.
>
> The -p option searches for the first match of the parent
> pattern in the callchain.
>
> $ perf report -i perf.data.delete -p perf_session__delete -s parent
>
> + 99.51% [other]
> + 0.46% perf_session__delete_dead_threads
> + 0.03% perf_session__delete
> + 0.00% perf_session__delete_threads
>
> so we got multiple 'different' matches instancies, while
> they all belong under perf_session__delete function:
>
> $ perf report -i perf.data.delete -P perf_session__delete -s parent
>
> + 99.51% [other]
> + 0.49% perf_session__delete
>
> NOTE the 'p' vs 'P' difference in above commands above.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: perf tools: Introduce new -P/--parent-deep report option
2013-06-27 5:29 ` Namhyung Kim
@ 2013-06-27 9:21 ` Jiri Olsa
0 siblings, 0 replies; 3+ messages in thread
From: Jiri Olsa @ 2013-06-27 9:21 UTC (permalink / raw)
To: Namhyung Kim; +Cc: Arnaldo Carvalho de Melo, Linux Kernel Mailing List
On Thu, Jun 27, 2013 at 02:29:21PM +0900, Namhyung Kim wrote:
> Hi Arnaldo,
>
> On Wed, 26 Jun 2013 11:58:53 -0300, Arnaldo Carvalho de Melo wrote:
> > Hi Jiri,
> >
> > About the patch below, can't this be solved by using a regex
> > instead of a simple substring search instead of adding a new command
> > line option?
>
> ???
>
> IIUC he reused parent_regex for this.
>
> And I think we can have the same effect by using -G and -p option
> together without this new option.
I think you're right.. I haven't realized I could reverse
the backtrace and search the same way via -p
thanks,
jirka
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-27 9:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26 14:58 perf tools: Introduce new -P/--parent-deep report option Arnaldo Carvalho de Melo
2013-06-27 5:29 ` Namhyung Kim
2013-06-27 9:21 ` Jiri Olsa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox