From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954Ab0KVNCG (ORCPT ); Mon, 22 Nov 2010 08:02:06 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:61729 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068Ab0KVNCC convert rfc822-to-8bit (ORCPT ); Mon, 22 Nov 2010 08:02:02 -0500 MIME-Version: 1.0 X-Originating-IP: [192.102.204.37] In-Reply-To: References: <1290077254-12165-1-git-send-email-andi@firstfloor.org> <1290077254-12165-4-git-send-email-andi@firstfloor.org> Date: Mon, 22 Nov 2010 21:01:59 +0800 Message-ID: Subject: Re: [PATCH 3/4] perf-events: Add support for supplementary event registers v3 From: Lin Ming To: Stephane Eranian Cc: Andi Kleen , a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, x86@kernel.org, Andi Kleen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 22, 2010 at 8:47 PM, Stephane Eranian wrote: > On Mon, Nov 22, 2010 at 1:23 PM, Lin Ming wrote: >> On Thu, Nov 18, 2010 at 6:47 PM, Andi Kleen wrote: >>> From: Andi Kleen >>> >>> Intel Nehalem/Westmere have a special OFFCORE_RESPONSE event >>> that can be used to monitor any offcore accesses from a core. >>> This is a very useful event for various tunings, and it's >>> also needed to implement the generic LLC-* events correctly. >>> >>> Unfortunately this event requires programming a mask in a separate >>> register. And worse this separate register is per core, not per >>> CPU thread. >> >> This "separate register" is MSR_OFFCORE_RSP_0, right? >> But from the SDM,  MSR_OFFCORE_RSP_0 is "thread" scope, >> see SDM 3b, Appendix B.4 MSRS IN THE INTELŪ MICROARCHITECTURE CODENAME NEHALEM >> >> Or am I missing some obvious thing? >> > The manual is wrong on this. Well, thanks for the info.