Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Paolo Bonzini
On 16/06/2016 09:49, Jiri Olsa wrote: > On Thu, Jun 16, 2016 at 09:22:59AM +0200, Paolo Bonzini wrote: >> On 12/04/2016 15:26, Paolo Bonzini wrote: >>> Add stackcollapse.py script as an example of parsing call chains, and >>> also of using optparse to access command line options. >>> >>> The

Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Paolo Bonzini
On 16/06/2016 09:49, Jiri Olsa wrote: > On Thu, Jun 16, 2016 at 09:22:59AM +0200, Paolo Bonzini wrote: >> On 12/04/2016 15:26, Paolo Bonzini wrote: >>> Add stackcollapse.py script as an example of parsing call chains, and >>> also of using optparse to access command line options. >>> >>> The

Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Jiri Olsa
On Thu, Jun 16, 2016 at 09:22:59AM +0200, Paolo Bonzini wrote: > On 12/04/2016 15:26, Paolo Bonzini wrote: > > Add stackcollapse.py script as an example of parsing call chains, and > > also of using optparse to access command line options. > > > > The flame graph tools include a set of scripts

Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Jiri Olsa
On Thu, Jun 16, 2016 at 09:22:59AM +0200, Paolo Bonzini wrote: > On 12/04/2016 15:26, Paolo Bonzini wrote: > > Add stackcollapse.py script as an example of parsing call chains, and > > also of using optparse to access command line options. > > > > The flame graph tools include a set of scripts

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Jiri Olsa
On Fri, May 20, 2016 at 01:01:41PM +0200, Paolo Bonzini wrote: > > SNIP > >>> new file mode 100755 > >>> index ..356b9656393d > >>> --- /dev/null > >>> +++ b/tools/perf/scripts/python/bin/stackcollapse-report > >>> @@ -0,0 +1,3 @@ > >>> +#!/bin/sh > >>> +# description: produce

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Jiri Olsa
On Fri, May 20, 2016 at 01:01:41PM +0200, Paolo Bonzini wrote: > > SNIP > >>> new file mode 100755 > >>> index ..356b9656393d > >>> --- /dev/null > >>> +++ b/tools/perf/scripts/python/bin/stackcollapse-report > >>> @@ -0,0 +1,3 @@ > >>> +#!/bin/sh > >>> +# description: produce

Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Paolo Bonzini
On 12/04/2016 15:26, Paolo Bonzini wrote: > Add stackcollapse.py script as an example of parsing call chains, and > also of using optparse to access command line options. > > The flame graph tools include a set of scripts that parse output from > various tools (including "perf script"), remove

Re: [PATCH] perf script: Add stackcollapse.py script

2016-06-16 Thread Paolo Bonzini
On 12/04/2016 15:26, Paolo Bonzini wrote: > Add stackcollapse.py script as an example of parsing call chains, and > also of using optparse to access command line options. > > The flame graph tools include a set of scripts that parse output from > various tools (including "perf script"), remove

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-05-20 Thread Paolo Bonzini
On 15/04/2016 12:57, Jiri Olsa wrote: > On Fri, Apr 15, 2016 at 07:20:48AM +0200, Paolo Bonzini wrote: >> On 12/04/2016 15:26, Paolo Bonzini wrote: >>> Add stackcollapse.py script as an example of parsing call chains, and >>> also of using optparse to access command line options. >>> >>> The

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-05-20 Thread Paolo Bonzini
On 15/04/2016 12:57, Jiri Olsa wrote: > On Fri, Apr 15, 2016 at 07:20:48AM +0200, Paolo Bonzini wrote: >> On 12/04/2016 15:26, Paolo Bonzini wrote: >>> Add stackcollapse.py script as an example of parsing call chains, and >>> also of using optparse to access command line options. >>> >>> The

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Paolo Bonzini
On 15/04/2016 12:57, Jiri Olsa wrote: >>> > > +# Input may be created and processed using: >>> > > +# >>> > > +# perf record -a -g -F 99 sleep 60 >>> > > +# perf script report stackcollapse > out.stacks-folded >>> > > +# >>> > > +# (perf script record stackcollapse works too). > IIRC Namhyung

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Paolo Bonzini
On 15/04/2016 12:57, Jiri Olsa wrote: >>> > > +# Input may be created and processed using: >>> > > +# >>> > > +# perf record -a -g -F 99 sleep 60 >>> > > +# perf script report stackcollapse > out.stacks-folded >>> > > +# >>> > > +# (perf script record stackcollapse works too). > IIRC Namhyung

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Jiri Olsa
On Fri, Apr 15, 2016 at 07:20:48AM +0200, Paolo Bonzini wrote: > On 12/04/2016 15:26, Paolo Bonzini wrote: > > Add stackcollapse.py script as an example of parsing call chains, and > > also of using optparse to access command line options. > > > > The flame graph tools include a set of scripts

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Jiri Olsa
On Fri, Apr 15, 2016 at 07:20:48AM +0200, Paolo Bonzini wrote: > On 12/04/2016 15:26, Paolo Bonzini wrote: > > Add stackcollapse.py script as an example of parsing call chains, and > > also of using optparse to access command line options. > > > > The flame graph tools include a set of scripts

ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Paolo Bonzini
On 12/04/2016 15:26, Paolo Bonzini wrote: > Add stackcollapse.py script as an example of parsing call chains, and > also of using optparse to access command line options. > > The flame graph tools include a set of scripts that parse output from > various tools (including "perf script"), remove

ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Paolo Bonzini
On 12/04/2016 15:26, Paolo Bonzini wrote: > Add stackcollapse.py script as an example of parsing call chains, and > also of using optparse to access command line options. > > The flame graph tools include a set of scripts that parse output from > various tools (including "perf script"), remove

[PATCH] perf script: Add stackcollapse.py script

2016-04-12 Thread Paolo Bonzini
Add stackcollapse.py script as an example of parsing call chains, and also of using optparse to access command line options. The flame graph tools include a set of scripts that parse output from various tools (including "perf script"), remove the offsets in the function and collapse each stack to

[PATCH] perf script: Add stackcollapse.py script

2016-04-12 Thread Paolo Bonzini
Add stackcollapse.py script as an example of parsing call chains, and also of using optparse to access command line options. The flame graph tools include a set of scripts that parse output from various tools (including "perf script"), remove the offsets in the function and collapse each stack to