Re: [PATCH RFC 05/10] perf,tools: Enable statistic read for perf record

2015-08-20 Thread Jiri Olsa
On Tue, Aug 18, 2015 at 05:25:41AM -0400, kan.li...@intel.com wrote: SNIP > diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c > index 373f65b..ca7bf8d 100644 > --- a/tools/perf/util/evlist.c > +++ b/tools/perf/util/evlist.c > @@ -854,6 +854,9 @@ static int perf_evlist__mmap_per_evs

Re: [PATCH RFC 05/10] perf,tools: Enable statistic read for perf record

2015-08-20 Thread Jiri Olsa
On Tue, Aug 18, 2015 at 05:25:41AM -0400, kan.li...@intel.com wrote: SNIP > evlist__for_each(evlist, pos) { > + > + if (pos->stat_read) { > + if (!target__has_cpu(&opts->target)) { > + pos->stat_read = 0; > +

[PATCH RFC 05/10] perf,tools: Enable statistic read for perf record

2015-08-18 Thread kan . liang
From: Kan Liang Using 'N' event/group modifier to specify the event which want to read counter statistics during sampling. For this event, the sampling will be disabled unless it's group leader. The 'N' modifier only be available for in system-wide/CPU mode. If a group is marked as 'N' modifier,