Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752822AbeANUw1 (ORCPT + 1 other); Sun, 14 Jan 2018 15:52:27 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:38470 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751374AbeANUw0 (ORCPT ); Sun, 14 Jan 2018 15:52:26 -0500 Date: Sun, 14 Jan 2018 21:52:20 +0100 (CET) From: Thomas Gleixner To: Kan Liang cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, acme@kernel.org, eranian@google.com, ak@linux.intel.com Subject: Re: [PATCH V4 5/8] perf/x86/intel/uncore: add infrastructure for free running counter In-Reply-To: <1509654593-4446-5-git-send-email-kan.liang@intel.com> Message-ID: References: <1509654593-4446-1-git-send-email-kan.liang@intel.com> <1509654593-4446-5-git-send-email-kan.liang@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, 2 Nov 2017, kan.liang@intel.com wrote: > From: Kan Liang > > The free running counter is read-only and always active. Current generic > uncore code does not support this kind of counters. > > The free running counter is read-only. It cannot be enable/disable in > event_start/stop. > The free running counter event and free running counter are 1:1 mapped. > It doesn't need to be assigned nor tracked by event_list. > The free running counters are always active. It doesn't need to check > the free running counters' availability. > > Use inline helpers to check fixed counter index and free running counter > index. > That changelog is horrible to read. Other than that: Reviewed-by: Thomas Gleixner