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

[Xen-devel] Capturing hypervisor idle cycles with oprofile

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Capturing hypervisor idle cycles with oprofile
From: "Harris, James R" <james.r.harris@xxxxxxxxx>
Date: Wed, 18 Jul 2007 15:06:57 -0700
Delivery-date: Wed, 18 Jul 2007 15:04:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfJh/FtZdSnrwHkQTqhfZJCrT3Fbg==
Thread-topic: Capturing hypervisor idle cycles with oprofile

Greetings,

I am using oprofile-0.9.3 and am trying to capture idle CPU cycles as part of my profile.  I am able to see both the hypervisor and domain0 in my profile, so I *think* I have oprofile configured correctly, but either I am missing something or this is not supported.

Oprofile configuration:
opcontrol --vmlinux=/boot/vmlinux-syms-2.6.18-xen --xen=/boot/xen-syms-3.1.0 --active-domains=0

GRUB:
title Xen
        root (hd0,0)
        kernel /xen-3.1.0.gz dom0_mem=2G idle=poll
        module /vmlinuz-2.6.18-xen root=/dev/sda2 ro idle=poll console=tty0
        module /initrd-2.6.18-xen.img

I have tried both xen-3.1.0 and xen-unstable.  I can see both xen and vmlinux symbols in my profile, but none of these include poll_idle (or anything equivalent).  I am using the stock oprofile-0.9.3 which was just released this week and contains the Xen support (previous versions required a Xen-specific patch on top of oprofile).

I assume that the hypervisor is responsible for halting the CPU - if so, is there a way to configure the hypervisor to poll instead of halt?  Or is there a different way to expose idle cycles to oprofile under Xen?

Regards,

Jim Harris


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Capturing hypervisor idle cycles with oprofile, Harris, James R <=