Received: by 10.223.176.46 with SMTP id f43csp551744wra; Wed, 24 Jan 2018 02:18:22 -0800 (PST) X-Google-Smtp-Source: AH8x225dlHMj9GAyRUZ5FoL3x9wvHDHUFeCAolT4GIU+yLek0wcJqvS5oUleW+F5Fbvg7uSh7VHW X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr1870335plx.208.1516789102041; Wed, 24 Jan 2018 02:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516789102; cv=none; d=google.com; s=arc-20160816; b=D4mZdWD1Wkzs9H9BbfKgMHqu+csp0nwfUnxo/oMhd5VedYlb8JUyZaVuXpdkjEmQB6 2KzuRUzB26af2qOKWnzlJ9bbFmIHscsFGatiA0cPUX3PC3eEipQDXjRTZX/K8M7RX/dW OfhjON2Yl+0FSfmu0ZQIc3z5BIEf6kypQ7nHhtlphUGj7MpbyFzQniKOIjSDscH6RbqG B2XszHpY6RVv0d59E2oCE4d0czsbd9JclgS9kYOYi+S7Qm00TCYnGMfmzN9FlQ1JH/DC p9TZDm9EqnDcH69FGicjoJV0faF9OSv+JI3YhLlUeec5wQxB/omfXUGqGK2JH984PmAz k8/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=BcacQziKEuh37bOK1BSZNITleqAOJuLCtx9b/t7lNRA=; b=mY9HhQ/J3M515KbpyrXwyvctwD0aRTSnE4kwn4O9llXW09kiv/9zVu1VuBu5WCN7oP egONTt/9/BtG0a26ps/nSHiAZaGZhQUKK0swAGEUhYa4cS/Z6EnBjNeLUxFeOnASHnql 8AFLr3m1tdBaCPISLF5IZsG3LwfpEy5ve715042bE13lkppRfusbYBxCx69DwzwpkAfZ hwAAKQa3Z+Q45xrFFFOUGNMytQ+P1NKVNP3mzvpsXntN1wInSZFC9hREj9qjL6jD8hZk eG8r9qXjx+912MVusd0VOC3Lwhp8Kq4FOObG9EuI4A/dO3gZAe9aHkp4hPqC+w/sxKdU nSMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=RsNPisXT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si5936491pld.89.2018.01.24.02.18.08; Wed, 24 Jan 2018 02:18:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=RsNPisXT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932966AbeAXKRe (ORCPT + 99 others); Wed, 24 Jan 2018 05:17:34 -0500 Received: from merlin.infradead.org ([205.233.59.134]:52484 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483AbeAXKRd (ORCPT ); Wed, 24 Jan 2018 05:17:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BcacQziKEuh37bOK1BSZNITleqAOJuLCtx9b/t7lNRA=; b=RsNPisXT3AtVf8LVZ2kiFWKVM ir/wKxfCWX28IxTv5Rx0I+l8jRjzC5nqUZULjr+ho3i3eSwE65BqnqO/ewN3ZMMuBXAiA2FYLUR0C 01pI0m/N0Nre51TGR5GpAFlGdgzmOgvjAyjj9z/VpQPozHCf6nUUpBbNEqgy8NczEptJLffaL1CJ3 v825QlnFYB9pLCfHmsUsouMocml0u3rJvo7dtu6EjiruHOgMEPkrUNY8jEYQe20zPYJQRAMeLpjWt QRhihVFWU5wdBJeCCJQmiLCEQq+qH0z3eoWiVhqnENOZ+wmtlrueC/y44eX+wPWalEb9MTwmbZ6xw 4uE6XBP8w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eeI7P-0003qE-Hs; Wed, 24 Jan 2018 10:17:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0113820103A14; Wed, 24 Jan 2018 11:17:21 +0100 (CET) Date: Wed, 24 Jan 2018 11:17:21 +0100 From: Peter Zijlstra To: "Liang, Kan" Cc: Andi Kleen , Stephane Eranian , "tglx@linutronix.de" , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , "acme@kernel.org" Subject: Re: [PATCH V5 4/8] perf/x86/intel/uncore: add new data structures for free running counters Message-ID: <20180124101721.GQ2228@hirez.programming.kicks-ass.net> References: <37D7C6CF3E00A74B8858931C1DB2F07753801FEF@SHSMSX103.ccr.corp.intel.com> <20180119130731.GQ2228@hirez.programming.kicks-ass.net> <37D7C6CF3E00A74B8858931C1DB2F077538025E7@SHSMSX103.ccr.corp.intel.com> <20180119171929.GZ2228@hirez.programming.kicks-ass.net> <37D7C6CF3E00A74B8858931C1DB2F077538026F3@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F07753802712@SHSMSX103.ccr.corp.intel.com> <20180119202417.GK7844@tassilo.jf.intel.com> <20180119213355.GE2269@hirez.programming.kicks-ass.net> <37D7C6CF3E00A74B8858931C1DB2F07753803C1E@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37D7C6CF3E00A74B8858931C1DB2F07753803C1E@SHSMSX103.ccr.corp.intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 10:00:58PM +0000, Liang, Kan wrote: > > On Fri, Jan 19, 2018 at 12:24:17PM -0800, Andi Kleen wrote: > > > > Oh, think a bit more. > > > > I think we cannot do the same thing as we did for CPU PMU's fixed > > counters. > > > > > > > > The counters here are free running counters. They cannot be start/stop. > > > > > > Yes free running counter have completely different semantics. They > > > need a separate event code. > > > > The only thing that matters is if they count the same thing or not. > > > > Hi Peter, > > There is NO event available on the GPs, that is exactly the same as > the free-running counters. > > For example, the BW free-running counters count the requests associated > with writes and completions. > The most similar events on the GPs are DATA_REQ_{OF,BY}_CPU.* events. > Except that some of their sub-events count requests which not completions. > There are also other minor differences. > So we don't have alternative events for the free-running counters. > I think we have to use 0xff. OK, but explicitly mention this as the reason for having to invent event codes. Them being fixed purpose or free running isn't a valid reason for that.