Received: by 10.223.176.46 with SMTP id f43csp975824wra; Fri, 19 Jan 2018 05:08:30 -0800 (PST) X-Google-Smtp-Source: ACJfBot9tUO4q9BlTiT5r9ySCTdUT8pv0bQyxQPaULGR6wYYiz3mm/Sj+l2Ni4Dcer0hHiuno/51 X-Received: by 10.98.202.214 with SMTP id y83mr20142306pfk.49.1516367310236; Fri, 19 Jan 2018 05:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516367310; cv=none; d=google.com; s=arc-20160816; b=BqkHRm0f3TFjsmeQyGDsmWvYhmqgNv6QF8gzHCaZ+QfsW4uV6PBJN+aBH0bmWYOdNa kOliJvsFcTOUNtCz3MlN1JGXhQvbbG4wa3efcNCyIkXDvP9ww2b2ChkOdgqPJXdOfvV6 wCsAkwe6PeZX/LypkmgAfbyX6hdTooRhR9iCGrLp4HxUFM5DG84jxq4Q8MKDQv3tiJD/ Jq2bK7rKrryntgA6IYJdkHKXSFHHOQOTwajfmxB1yJisxIszXIOX/LXy8wSu5vB+Ge0W AMgzaWBe2dPtND9gOnJ7sRJ3u2QJBG8C+fcPAHM7rXdpGwW8w5ijhNxMfL2QRd4mefju 8FLg== 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=YNp4Pf2XZ/HXnVp/0w+rCAzQKOxPAWWtQH4+9q8F9ZU=; b=a2dOM5R5svTZwj2pc4qzFvESUQj+kIL+BSL7RhIfognoYVUO2OpZN0eFdCoILl+bA5 0KN2DWAZuC5QDuxCtXjvSeRaV6tE3ePhaGWdDWOxbzlOtZSyAQMzNxNlpCyExYdXkX/R LDUFlLXhBst3+aX1W6c/35aXyS28IQ7WWKyB6NO+UpFgvWjZvnoQ4IayEU+WN9HcuFpE QlgEsW8EBHb7QUsFzsc+3iOlbw+luVymmky3RHdkD0sXii8FlpZZJ1JKFZPjIrV/HwwM qOdSgdLArreqf6ZcJY0C5zMrD2hdaznF844QReqMNbKyyv03h/Epz+JkMEpYH8kk3QfD 4l2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uitADCUs; 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 a15si8251750pgd.21.2018.01.19.05.08.15; Fri, 19 Jan 2018 05:08:30 -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=bombadil.20170209 header.b=uitADCUs; 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 S1755008AbeASNHo (ORCPT + 99 others); Fri, 19 Jan 2018 08:07:44 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:59357 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbeASNHj (ORCPT ); Fri, 19 Jan 2018 08:07:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=YNp4Pf2XZ/HXnVp/0w+rCAzQKOxPAWWtQH4+9q8F9ZU=; b=uitADCUs7mkM9liTh3FjltOgF 5938q03BgC3axeShlQlpTXje7IEIcHSqnpT6XiLcuQwkez9ArKHhrcYTFIl5BB2zv27qg2xrh8Cuf ieGRME+EaFHDrtuzq0TT1+vz8tmFHtM7rUhbI14GqT/ywPxVYOwnwU7n9AR+8lmrFZlksOMqRb1Wa OPGAgNXmmbZEtZkoHCKSOXPrIuOVKD8LjNNQRE//i31EkGVwqdrRcNrbujcs0MUrIDPyRyI9PUnf3 llOAzlMR9xWwwfPzkQ8xlZNsNI6X+3YJSr4XQfALalu0CzDvDWwVdBOPrKbskDzxtKbpxGAvXGJh6 NDD6fp3Ig==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1ecWOM-0003Qw-Ed; Fri, 19 Jan 2018 13:07:34 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D26B72029FA04; Fri, 19 Jan 2018 14:07:31 +0100 (CET) Date: Fri, 19 Jan 2018 14:07:31 +0100 From: Peter Zijlstra To: "Liang, Kan" 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 Message-ID: <20180119130731.GQ2228@hirez.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37D7C6CF3E00A74B8858931C1DB2F07753801FEF@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 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?