From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755088AbeASNHq (ORCPT ); Fri, 19 Jan 2018 08:07:46 -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 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 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?