WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Xenoprof: getting Oprofile out of timer mode?
From: "Ray Bryant" <raybry@xxxxxxxxxxxxxxxxx>
Date: Tue, 23 May 2006 17:32:44 -0500
Cc: Gitika Aggarwal <gitika@xxxxxxxxx>, Andrei Lifchits <alifchit@xxxxxxxxx>, "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Delivery-date: Tue, 23 May 2006 15:33:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <6C21311CEE34E049B74CC0EF339464B9645332@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6C21311CEE34E049B74CC0EF339464B9645332@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8
On Sunday 21 May 2006 01:53, Santos, Jose Renato G wrote:
> Xenoprof initialization is failing with -ENODEV status (-19).
> There are two conditions that would cause this:
> 1) The local APIC is not available (cpu_has_apic is false)
> 2) OR the cpu (family/model) is not one of the known CPU models
>    in xenoprof
>
> Have you tried running Oprofile in vanila linux?
> Does OProfile recognize the CPU model and the APIC in Linux?
>
> Renato
>

Yeah, it looks the problem is the following check in 
arch/x86/oprofile/nmi_int.c:

        if (cpu_model > 4)
                return 0;

Intel processors 920 and 955 (perhaps others, you would have to ask Intel) 
appear to return 6 as the cpu model.  Making the obvious change to the above 
gets oprofile out of timer only mode.   An obvious patch is attached.

-- 
Ray Bryant
AMD Performance Labs                   Austin, Tx
512-602-0038 (o)                 512-507-7807 (c)

Attachment: xenoprof_fix_intel_920_955.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel