Received: by 10.223.176.46 with SMTP id f43csp1325972wra; Fri, 19 Jan 2018 09:54:23 -0800 (PST) X-Google-Smtp-Source: ACJfBosn8Dg/Tp+8FFmp/rJWmxiR0FRCIZlR3FDg2zdCqvkzsyk14myO9pTuayc8rsst8+skrqzu X-Received: by 10.98.223.196 with SMTP id d65mr40856324pfl.176.1516384463631; Fri, 19 Jan 2018 09:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516384463; cv=none; d=google.com; s=arc-20160816; b=jSdR5R0lSad3ZVTROA5OzgWyig21PCy8ZgMBqu+baIoV32them1V7WccDqHX+f3/fD jMtEWnLHbKkpJL3g8FLVtW+zYjMHPpUEYjYxGyX7mKa2cMUxjGDbQFP8OfZMn/2YR7m5 kG03u8yjGC5ZddPmEY4zp7MeSRbfsyNWKW7WAaLbNaohH1OUMuXEGLXwY7LBUOmuDKpb Tt3f6n67G+NvIEosF1vEWl/i5GnkI0Izxm+g/7MWkRCSUa1we7f4YLxp3yeP6snlDay1 jIaYN9AGJszWUPMkBNPXR7PGtJImcrbwfL90eeRVJKrXJ+6cVAxmiVzsF6qESUUF9t+7 D0rQ== 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=8JrXFQ8FaJXJMoyH5TBglZqVLfnFyjC+TYIR7bYSsG0=; b=Aby0ksV6CrPOzKXNr4w4nUvpTtQHgEsFCl53A0fc84etkLqK/sI+6be2flCs5trjEB IO4igdPmV0V2mUw/Jkx8OTFffRdCTIQpmgJHdE2PoJtZhE24UxtsS19Bp0TNKicFpS1a z6crJ/FEP5a6SBtbJK9A3ySJcCAPfq70NBO72US/GW3kpN6b6I8AJNc7xCREI+WLIdrB jgghWCbvhKFyKJIJlXrsUB1flvaBE3xnMcWNqc8LCbGOxTn2wjHcp4FEeA+BeLBDTzKU nGXeI7vWnhUHF7BgqhqLirld2SU4CG2mBOmLNKK4JoJ2UoX5UaWKbc/U9ptkeJ82kAUa nFMQ== 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 e26si3658651pfj.239.2018.01.19.09.54.08; Fri, 19 Jan 2018 09:54:23 -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 S932536AbeASRxZ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 19 Jan 2018 12:53:25 -0500 Received: from mga09.intel.com ([134.134.136.24]:20482 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932305AbeASRxU (ORCPT ); Fri, 19 Jan 2018 12:53:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jan 2018 09:53:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,382,1511856000"; d="scan'208";a="167530714" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 19 Jan 2018 09:53:19 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 19 Jan 2018 09:53:19 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 19 Jan 2018 09:53:18 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Sat, 20 Jan 2018 01:53:17 +0800 From: "Liang, Kan" To: Peter Zijlstra CC: "tglx@linutronix.de" , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , "acme@kernel.org" , "eranian@google.com" , "ak@linux.intel.com" 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//+iMICAAI7aIA== Date: Fri, 19 Jan 2018 17:53:16 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077538026F3@SHSMSX103.ccr.corp.intel.com> References: <1516042629-387021-1-git-send-email-kan.liang@intel.com> <1516042629-387021-4-git-send-email-kan.liang@intel.com> <20180118133248.GC2249@hirez.programming.kicks-ass.net> <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> In-Reply-To: <20180119171929.GZ2228@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGZlN2Y0YWMtMGNjNy00MzFhLTg2NzQtOGMzMTg0NjIzOTFiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InJFYnlHY3dlZDBCR3RKVXhlczMwdkk3TGplOVpGUGZmYkVhR0ZhOEo3THM9In0= 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 Fri, Jan 19, 2018 at 03:15:00PM +0000, Liang, Kan wrote: > > > > > > On Thu, Jan 18, 2018 at 05:43:10PM +0000, Liang, Kan wrote: > > > > In the uncore document, there is no event-code assigned to free > > > > running > > > counters. > > > > Some events need to be defined to indicate the free running counters. > > > > The events are encoded as event-code + umask-code. > > > > > > > > The event-code for all free running counters is 0xff, which is the > > > > same as the fixed counters. > > > > > > Is it possible to count the same things using the generic counters? > > > > > > > Yes, there are events for generic counters to count bandwidth and > > utilization. > > > > The reasons of introducing free running counters are > > - To provide highly valuable information (bandwidth and utilization) > > which most of the customers are interested in > > - To save on the precious generic counters > > _IF_ the exact same counters are available on the GPs then we must use the > same event code for them and use event scheduling to place them on > fixed/free-running counters when possible. OK. I will check if there are the exact same events on GPs for those free running counters. Thanks, Kan > > That's what we do for the CPU PMU's fixed counters too. > > Don't invent magic event codes just because.