Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-05-09 Thread Namhyung Kim
Hi Peter, On Fri, May 08, 2015 at 04:46:20PM +0200, Peter Zijlstra wrote: > On Wed, Apr 29, 2015 at 08:58:22PM +0900, Namhyung Kim wrote: > > > It would be nice if this thing could support 'perf record -s' which > > > enables perf_event_attr::inherit_stat, which in turn results in > > > PERF_RECOR

Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-05-08 Thread Peter Zijlstra
On Wed, Apr 29, 2015 at 08:58:22PM +0900, Namhyung Kim wrote: > > It would be nice if this thing could support 'perf record -s' which > > enables perf_event_attr::inherit_stat, which in turn results in > > PERF_RECORD_READ entries after every PERF_RECORD_EXIT which give the > > total number of even

Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-04-29 Thread Namhyung Kim
Hi Peter, On Wed, Apr 29, 2015 at 11:27:51AM +0200, Peter Zijlstra wrote: > On Wed, Apr 29, 2015 at 04:27:45PM +0900, Namhyung Kim wrote: > > Add --input option to 'perf stat' so that it can show event stats of the > > file. I would like to use a short '-i' option to be compatible with > > other

Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-04-29 Thread Peter Zijlstra
On Wed, Apr 29, 2015 at 04:27:45PM +0900, Namhyung Kim wrote: > Add --input option to 'perf stat' so that it can show event stats of the > file. I would like to use a short '-i' option to be compatible with > other commands but it was already taken by '--no-inherit' option, so it > only supports t

Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-04-29 Thread Namhyung Kim
Hi Jiri, On Wed, Apr 29, 2015 at 4:42 PM, Jiri Olsa wrote: > On Wed, Apr 29, 2015 at 04:27:45PM +0900, Namhyung Kim wrote: >> Add --input option to 'perf stat' so that it can show event stats of the >> file. I would like to use a short '-i' option to be compatible with >> other commands but it w

Re: [RFC/PATCH] perf stat: Show sample events stat for a data file

2015-04-29 Thread Jiri Olsa
On Wed, Apr 29, 2015 at 04:27:45PM +0900, Namhyung Kim wrote: > Add --input option to 'perf stat' so that it can show event stats of the > file. I would like to use a short '-i' option to be compatible with > other commands but it was already taken by '--no-inherit' option, so it > only supports t