Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-04 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Em Mon, Dec 02, 2013 at 05:36:20PM +0100, Ingo Molnar escreveu: > > * Namhyung Kim wrote: > > > 2013-12-02 (월), 13:57 +0100, Ingo Molnar: > > > > So basically, in the end I think it should be possible to have the > > > > following behavior: > > > > >

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-04 Thread Ingo Molnar
* David Ahern wrote: > On 12/2/13, 10:44 PM, Namhyung Kim wrote: > >>Right now 'perf stat -i' i used for '--no-inherit', perhaps we can just > >>have --no-inherit have no short option and grab -i to have the same > >>meaning as in 'report', 'script', etc. > > > >Agreed. Maybe we could change

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-04 Thread Ingo Molnar
* David Ahern dsah...@gmail.com wrote: On 12/2/13, 10:44 PM, Namhyung Kim wrote: Right now 'perf stat -i' i used for '--no-inherit', perhaps we can just have --no-inherit have no short option and grab -i to have the same meaning as in 'report', 'script', etc. Agreed. Maybe we could

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-04 Thread Ingo Molnar
* Arnaldo Carvalho de Melo a...@ghostprotocols.net wrote: Em Mon, Dec 02, 2013 at 05:36:20PM +0100, Ingo Molnar escreveu: * Namhyung Kim namhy...@kernel.org wrote: 2013-12-02 (월), 13:57 +0100, Ingo Molnar: So basically, in the end I think it should be possible to have the

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-03 Thread David Ahern
On 12/2/13, 10:44 PM, Namhyung Kim wrote: Right now 'perf stat -i' i used for '--no-inherit', perhaps we can just have --no-inherit have no short option and grab -i to have the same meaning as in 'report', 'script', etc. Agreed. Maybe we could change it to plain --inherit. yes:

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-03 Thread David Ahern
On 12/2/13, 10:44 PM, Namhyung Kim wrote: Right now 'perf stat -i' i used for '--no-inherit', perhaps we can just have --no-inherit have no short option and grab -i to have the same meaning as in 'report', 'script', etc. Agreed. Maybe we could change it to plain --inherit. yes:

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
On Mon, 2 Dec 2013 17:24:59 -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Dec 02, 2013 at 05:36:20PM +0100, Ingo Molnar escreveu: >> * Namhyung Kim wrote: >> > 2013-12-02 (월), 13:57 +0100, Ingo Molnar: >> > > So basically, in the end I think it should be possible to have the >> > > following

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
Hi Ingo, On Mon, 2 Dec 2013 17:36:20 +0100, Ingo Molnar wrote: > * Namhyung Kim wrote: > >> 2013-12-02 (월), 13:57 +0100, Ingo Molnar: >> > So basically, in the end I think it should be possible to have the >> > following behavior: >> > >> >perf record -a -e cycles sleep 1 >> > >> >

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 02, 2013 at 05:36:20PM +0100, Ingo Molnar escreveu: > * Namhyung Kim wrote: > > 2013-12-02 (월), 13:57 +0100, Ingo Molnar: > > > So basically, in the end I think it should be possible to have the > > > following behavior: > > >perf record -a -e cycles sleep 1 > > >perf

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 03, 2013 at 12:05:49AM +0900, Namhyung Kim escreveu: > Hi Ingo, > > 2013-12-02 (월), 13:45 +0100, Ingo Molnar: > > * Namhyung Kim wrote: > > > > > From: Namhyung Kim > > > > > > It's sometimes useful to see total sampling or elapsed time with > > > normal performance result. To do

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Ingo Molnar
* Namhyung Kim wrote: > 2013-12-02 (월), 13:57 +0100, Ingo Molnar: > > So basically, in the end I think it should be possible to have the > > following behavior: > > > >perf record -a -e cycles sleep 1 > > > >perf report stat # Reports as if we ran: 'perf stat -a -e > >

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
2013-12-02 (월), 13:57 +0100, Ingo Molnar: > So basically, in the end I think it should be possible to have the > following behavior: > >perf record -a -e cycles sleep 1 > >perf report stat # Reports as if we ran: 'perf stat -a -e > cycles sleep 1' >perf report

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
Hi Ingo, 2013-12-02 (월), 13:45 +0100, Ingo Molnar: > * Namhyung Kim wrote: > > > From: Namhyung Kim > > > > It's sometimes useful to see total sampling or elapsed time with > > normal performance result. To do that, record first and last sample > > time for each evsel and to display it in

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Ingo Molnar
So basically, in the end I think it should be possible to have the following behavior: perf record -a -e cycles sleep 1 perf report stat # Reports as if we ran: 'perf stat -a -e cycles sleep 1' perf report # Reports the usual histogram perf report

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Ingo Molnar
* Namhyung Kim wrote: > From: Namhyung Kim > > It's sometimes useful to see total sampling or elapsed time with > normal performance result. To do that, record first and last sample > time for each evsel and to display it in the header (--stdio only for > now). > > $ perf record -a sleep

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Ingo Molnar
* Namhyung Kim namhy...@kernel.org wrote: From: Namhyung Kim namhyung@lge.com It's sometimes useful to see total sampling or elapsed time with normal performance result. To do that, record first and last sample time for each evsel and to display it in the header (--stdio only for

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Ingo Molnar
So basically, in the end I think it should be possible to have the following behavior: perf record -a -e cycles sleep 1 perf report stat # Reports as if we ran: 'perf stat -a -e cycles sleep 1' perf report # Reports the usual histogram perf report

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
Hi Ingo, 2013-12-02 (월), 13:45 +0100, Ingo Molnar: * Namhyung Kim namhy...@kernel.org wrote: From: Namhyung Kim namhyung@lge.com It's sometimes useful to see total sampling or elapsed time with normal performance result. To do that, record first and last sample time for each

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
2013-12-02 (월), 13:57 +0100, Ingo Molnar: So basically, in the end I think it should be possible to have the following behavior: perf record -a -e cycles sleep 1 perf report stat # Reports as if we ran: 'perf stat -a -e cycles sleep 1' perf report

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Ingo Molnar
* Namhyung Kim namhy...@kernel.org wrote: 2013-12-02 (월), 13:57 +0100, Ingo Molnar: So basically, in the end I think it should be possible to have the following behavior: perf record -a -e cycles sleep 1 perf report stat # Reports as if we ran: 'perf stat -a -e

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 03, 2013 at 12:05:49AM +0900, Namhyung Kim escreveu: Hi Ingo, 2013-12-02 (월), 13:45 +0100, Ingo Molnar: * Namhyung Kim namhy...@kernel.org wrote: From: Namhyung Kim namhyung@lge.com It's sometimes useful to see total sampling or elapsed time with normal

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 02, 2013 at 05:36:20PM +0100, Ingo Molnar escreveu: * Namhyung Kim namhy...@kernel.org wrote: 2013-12-02 (월), 13:57 +0100, Ingo Molnar: So basically, in the end I think it should be possible to have the following behavior: perf record -a -e cycles sleep 1 perf

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
Hi Ingo, On Mon, 2 Dec 2013 17:36:20 +0100, Ingo Molnar wrote: * Namhyung Kim namhy...@kernel.org wrote: 2013-12-02 (월), 13:57 +0100, Ingo Molnar: So basically, in the end I think it should be possible to have the following behavior: perf record -a -e cycles sleep 1 perf

Re: [PATCH 1/3] perf tools: Record total sampling time

2013-12-02 Thread Namhyung Kim
On Mon, 2 Dec 2013 17:24:59 -0300, Arnaldo Carvalho de Melo wrote: Em Mon, Dec 02, 2013 at 05:36:20PM +0100, Ingo Molnar escreveu: * Namhyung Kim namhy...@kernel.org wrote: 2013-12-02 (월), 13:57 +0100, Ingo Molnar: So basically, in the end I think it should be possible to have the

[PATCH 1/3] perf tools: Record total sampling time

2013-12-01 Thread Namhyung Kim
From: Namhyung Kim It's sometimes useful to see total sampling or elapsed time with normal performance result. To do that, record first and last sample time for each evsel and to display it in the header (--stdio only for now). $ perf record -a sleep 1 $ perf report --stdio ... #

[PATCH 1/3] perf tools: Record total sampling time

2013-12-01 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com It's sometimes useful to see total sampling or elapsed time with normal performance result. To do that, record first and last sample time for each evsel and to display it in the header (--stdio only for now). $ perf record -a sleep 1 $ perf report