Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751810AbbHTJl0 (ORCPT ); Thu, 20 Aug 2015 05:41:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41939 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbbHTJlZ (ORCPT ); Thu, 20 Aug 2015 05:41:25 -0400 Date: Thu, 20 Aug 2015 11:41:22 +0200 From: Jiri Olsa To: kan.liang@intel.com Cc: acme@kernel.org, a.p.zijlstra@chello.nl, mingo@redhat.com, jolsa@kernel.org, namhyung@kernel.org, ak@linux.intel.com, eranian@google.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 05/10] perf,tools: Enable statistic read for perf record Message-ID: <20150820094122.GC4640@krava.brq.redhat.com> References: <1439889946-28986-1-git-send-email-kan.liang@intel.com> <1439889946-28986-6-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439889946-28986-6-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 24 On Tue, Aug 18, 2015 at 05:25:41AM -0400, kan.liang@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_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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/