From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751714AbdE3N5R (ORCPT ); Tue, 30 May 2017 09:57:17 -0400 Received: from mga03.intel.com ([134.134.136.65]:52502 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751657AbdE3N5Q (ORCPT ); Tue, 30 May 2017 09:57:16 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,418,1491289200"; d="scan'208";a="862753063" Date: Tue, 30 May 2017 06:57:14 -0700 From: Andi Kleen To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Vince Weaver , Thomas Gleixner , Ingo Molnar , Stephane Eranian , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa Subject: Re: perf group read for inherited events Message-ID: <20170530135714.GJ24144@tassilo.jf.intel.com> References: <20170526205601.GA5271@tassilo.jf.intel.com> <20170530094512.dy2nljns2uq7qa3j@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170530094512.dy2nljns2uq7qa3j@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2017 at 11:45:12AM +0200, Peter Zijlstra wrote: > > Or is the simple patch below good enough? > > The below seems to be the correct thing. It is rather unfortunate that > this would break/significantly change existing semantics :/ The "existing semantics" as in ignoring the PERF_SAMPLE_READ in sample_type, even though it wasn't implemented? It seems reasonable to me. If you really worry about it could drop a printk_once in and see if it triggers anywhere (and if yes drop the if completely) The patch looks good to me. Please consider adding it. I have some patches to use this in perf stat, will submit later. -Andi