From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754024AbdHUOqT (ORCPT ); Mon, 21 Aug 2017 10:46:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53812 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753245AbdHUOqS (ORCPT ); Mon, 21 Aug 2017 10:46:18 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CE9AA13A97 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jolsa@redhat.com Date: Mon, 21 Aug 2017 16:46:14 +0200 From: Jiri Olsa To: Mark Rutland Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Andi Kleen , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , Stephane Eranian , Thomas Gleixner , Vince Weaver , Ingo Molnar Subject: Re: pmu::read() called erroneously in v4.13-rc{3,4} Message-ID: <20170821144614.GA15568@krava> References: <20170810173551.GD12812@leverpostej> <20170811111807.GD12985@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170811111807.GD12985@leverpostej> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 21 Aug 2017 14:46:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 11, 2017 at 12:18:07PM +0100, Mark Rutland wrote: SNIP > > I'm also confused by perf_output_read_group() when event == leader. > AFAICT, in that case we won't read() the event at all, and we'll only > read() the siblings. Is that right? I think we assume perf_output_read_group is only called from event's PMI which means it's already been called for event jirka