Received: by 10.223.176.46 with SMTP id f43csp913463wra; Wed, 24 Jan 2018 07:48:10 -0800 (PST) X-Google-Smtp-Source: AH8x224f45N+082fMNsQ3nvXC8aJ8DF4DY6IZiGJaMUzH2ndS7WKbGkPYq5Bb7cwZYUrq04GiUlf X-Received: by 10.98.105.199 with SMTP id e190mr13178247pfc.233.1516808890440; Wed, 24 Jan 2018 07:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516808890; cv=none; d=google.com; s=arc-20160816; b=dKTbWe1kalBNkZdqVem0FK6rqnH6MZC0XFhgJThw1x+G+9mPZ6WY3cMcyXeEwvZKGA Yhn6B9ZN7U88S5b19p/xDK7JZ8dq8s8AVfoXZPQeh7gGbLimo+npe+40jyhrrtNWe5r+ J8mX7qT22EzFdEgBglHGbM9t1Strul7j9YdjS59grKuljX6nsZGcajZOQfH8O0yuNMVJ aC5WoQ/OxTF708fvs1+c57B5NOO2J2lobaXoU7H5DrHY9WewqyIFO6aJ9A/KWl5DXJMX qQfAc05wqu/mqEXEWHb7n7QnG++fEqwVS2xw0BO1c0cpPWnaUcpe8EAUZQredcZrcTgb Q6Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=FmdLfW474QkG/dNy3PniDVMAWq+oKO9eBS0o/wp656w=; b=q9sUDtkEYcVinPGZMAkPpooRsHrlvGOIkbKI9mcX2MxXM19Fq9f02mOI3/ckNuDIIH PP71VVt9LxP30WaROVm6uQY3IoM3NBPZTj/Ms/GC0HUj3gWeFhPDEm8vQRFXfP5qTAYv 8P5904IgsHWpyQHWRzByOrbAg4hdG3UM8xg1FNqogCHzI1TleooRoe2slkUk0wL33xrw wqIjNgTaIs+7ZrIL3o4Ql9rZQ+ejGlhoKf8lvMCp3/aecsZxK1TJNB2ef7KqOyegDXLI I3DCRkJn67TZIGH6SHKOa5o55yPI0J+Itm5dRSs3W3ySkI78fT7hF3/fvig6jaSxeAi6 tyTA== ARC-Authentication-Results: i=1; mx.google.com; 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 h6si276704pgc.820.2018.01.24.07.47.56; Wed, 24 Jan 2018 07:48:10 -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; 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 S934143AbeAXPrf convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Jan 2018 10:47:35 -0500 Received: from mga04.intel.com ([192.55.52.120]:51594 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934225AbeAXPrb (ORCPT ); Wed, 24 Jan 2018 10:47:31 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2018 07:47:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,408,1511856000"; d="scan'208";a="22247189" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 24 Jan 2018 07:47:30 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 07:47:29 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 07:47:29 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Wed, 24 Jan 2018 23:46:49 +0800 From: "Liang, Kan" To: Peter Zijlstra 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 Thread-Topic: [PATCH V5 4/8] perf/x86/intel/uncore: add new data structures for free running counters Thread-Index: AQHTjjLMO5E6Fi0JBEaHVwBOA31k86N5HycAgACap6CAAPCdgIAApDaA//+iMICAAI7aIP//eyCAgACGgND//6MogAACbqKAANlSuBAACoFSgAAcQDgw Date: Wed, 24 Jan 2018 15:46:49 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077538041CE@SHSMSX103.ccr.corp.intel.com> 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> <20180124101721.GQ2228@hirez.programming.kicks-ass.net> In-Reply-To: <20180124101721.GQ2228@hirez.programming.kicks-ass.net> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjA2ZjZiNjAtOTBlZC00MjRkLWI1MTctZTE3ODViZGJmOWM1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlNhbWJRNUg1VXRBcDdWZ3NuNk91NnJhK1pBUVBNRCtvSVBnQWFlTmt5M1k9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 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. Sure, I will add it in V6. Thanks, Kan