Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753354Ab2B0REe (ORCPT ); Mon, 27 Feb 2012 12:04:34 -0500 Received: from ch1ehsobe001.messaging.microsoft.com ([216.32.181.181]:34737 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752811Ab2B0REd (ORCPT ); Mon, 27 Feb 2012 12:04:33 -0500 X-SpamScore: -6 X-BigFish: VS-6(zz1432N98dKzz1202hzzz2dh87h2a8h668h839h8e2h8e3h944hbe9k) X-Forefront-Antispam-Report: CIP:160.36.179.135;KIP:(null);UIP:(null);IPV:NLI;H:kedge3.utk.tennessee.edu;RD:kedge3.utk.tennessee.edu;EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Date: Mon, 27 Feb 2012 12:04:27 -0500 From: Vince Weaver To: Peter Zijlstra CC: , , Paul Mackerras , Arnaldo Carvalho de Melo , Stephane Eranian Subject: Re: [PATCH] perf_event use rdpmc rather than rdmsr when possible in kernel In-Reply-To: <1330359518.11248.72.camel@twins> Message-ID: References: <1330342762.11248.69.camel@twins> <1330359518.11248.72.camel@twins> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 27 On Mon, 27 Feb 2012, Peter Zijlstra wrote: > > I couldn't find another usable rdpmc() call in the kernel. Should I add > > one? I admit I hadn't thought that this might break VMs not expecting > > rdpmc calls from the kernel. > > arch/x86/include/asm/msr.h > > #define rdpmc(counter, low, high) \ > do { \ > u64 _l = native_read_pmc((counter)); \ > (low) = (u32)_l; \ > (high) = (u32)(_l >> 32); \ > } while (0) ugh I did multiple recursive greps, and definitely searched msr.h by hand various times looking for that and I somehow missed it each time. I'll update the patch. Vince -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/