From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 456801A035C for ; Fri, 24 Jul 2015 11:19:03 +1000 (AEST) Received: from /spool/local by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 Jul 2015 21:19:00 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id B107138C803B for ; Thu, 23 Jul 2015 21:18:57 -0400 (EDT) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6O1IvU862783618 for ; Fri, 24 Jul 2015 01:18:57 GMT Received: from d01av04.pok.ibm.com (localhost [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6O1IuFS003688 for ; Thu, 23 Jul 2015 21:18:57 -0400 Date: Thu, 23 Jul 2015 18:17:43 -0700 From: Sukadev Bhattiprolu To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v3 7/8] perf: Define PMU_TXN_READ interface Message-ID: <20150724011743.GA5847@us.ibm.com> References: <1436929315-28520-1-git-send-email-sukadev@linux.vnet.ibm.com> <1436929315-28520-8-git-send-email-sukadev@linux.vnet.ibm.com> <20150716222015.GO3644@twins.programming.kicks-ass.net> <20150722015045.GA24420@us.ibm.com> <20150722055503.GO25159@twins.programming.kicks-ass.net> <20150722231916.GA1863@us.ibm.com> <20150723080435.GE25159@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20150723080435.GE25159@twins.programming.kicks-ass.net> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Peter Zijlstra [peterz@infradead.org] wrote: | On Wed, Jul 22, 2015 at 04:19:16PM -0700, Sukadev Bhattiprolu wrote: | > Peter Zijlstra [peterz@infradead.org] wrote: | > | I've not woken up yet, and not actually fully read the email, but can | > | you stuff the entire above chunk inside the IPI? | > | | > | I think you could then actually optimize __perf_event_read() as well, | > | because all these events should be on the same context, so no point in | > | calling update_*time*() for every event or so. | > | | > | > Do you mean something like this (will move the rename to a separate | > patch before posting): | | More like so.. please double check, I've not even had tea yet. Yeah, I realized I had ignored the 'event->cpu' spec. Will try this out. Thanks, Sukadev