From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755127AbbFROZn (ORCPT ); Thu, 18 Jun 2015 10:25:43 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34637 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbbFROZf (ORCPT ); Thu, 18 Jun 2015 10:25:35 -0400 Message-ID: <5582D4CD.8000005@gmail.com> Date: Thu, 18 Jun 2015 16:25:17 +0200 From: Imre Palik User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Peter Zijlstra CC: Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, "Palik, Imre" , Anthony Liguori Subject: Re: [PATCH v3] perf: honoring the architectural performance monitoring version References: <1434378152-4042-1-git-send-email-imrep.amz@gmail.com> <20150616092136.GL3644@twins.programming.kicks-ass.net> In-Reply-To: <20150616092136.GL3644@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/16/15 11:21, Peter Zijlstra wrote: > On Mon, Jun 15, 2015 at 04:22:32PM +0200, Imre Palik wrote: >> From: "Palik, Imre" >> >> Architectural performance monitoring version 1 doesn't support fixed >> counters. Currently, even if a hypervisor advertises support for >> architectural performance monitoring version 1, perf may still tries to use >> the fixed counters, as the constraints are set up based on the CPU model. >> >> This patch ensures that perf honors the architectural performance >> monitoring version returned by CPUID, and it only uses the fixed counters >> for version two and above. >> >> Some of the ideas in this patch are coming from Peter Zijlstra. > > What's the difference from -v2? I'm not really seeing it. > I made the mistake of sending two different versions as v2. v3 is the same as the second v2. I sent this to clear up possible confusion. Sorry if it caused more of it.