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

From: Jiri Olsa
Date: Thu Aug 20 2015 - 05:41:30 EST


On Tue, Aug 18, 2015 at 05:25:41AM -0400, kan.liang@xxxxxxxxx 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_evsel(struct perf_evlist *evlist, int idx,
> if (evsel->system_wide && thread)
> continue;
>
> + if (evsel->stat_read)
> + continue;
> +

how about filters (perf_evlist__apply_filters) ... should be disabled as well IIUIC

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/