Re: [PATCH 3/4] perf tools: Add perf_evsel__read_counter function

2017-07-26 Thread Jiri Olsa
On Tue, Jul 25, 2017 at 10:41:48PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c > > index 53b9a994a3dc..2c258554f94d 100644 > > --- a/tools/perf/util/stat.c > > +++ b/tools/perf/util/stat.c > > @@ -128,6 +128,9 @@ static int perf_evs

Re: [PATCH 3/4] perf tools: Add perf_evsel__read_counter function

2017-07-25 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 25, 2017 at 10:41:48PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Jul 21, 2017 at 02:12:11PM +0200, Jiri Olsa escreveu: > > +++ b/tools/perf/util/stat.c > > @@ -128,6 +128,9 @@ static int perf_evsel__alloc_stat_priv(struct > > perf_evsel *evsel) > > static void perf_evsel__f

Re: [PATCH 3/4] perf tools: Add perf_evsel__read_counter function

2017-07-25 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 21, 2017 at 02:12:11PM +0200, Jiri Olsa escreveu: > Adding perf_evsel__read_counter function to read single or > group counter. After calling this function the counter's > evsel::counts struct is filled with values for the counter > and member of its group if there are any. > > Link: h