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] profiling active RHEL 4 PV domains with xenoprof

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] profiling active RHEL 4 PV domains with xenoprof
From: Andrew Evans <andrewe@xxxxxxxxxxxxx>
Date: Fri, 29 Jan 2010 16:24:27 -0800
Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Delivery-date: Fri, 29 Jan 2010 16:25:10 -0800
Domainkey-signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; b=Y0efFef7JJJCstDU2pjThAz0B5R4ofXR96tkKCJ53g8M6k4jvn0AZyDTIope87/8
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <EF547E542C520A4D858CFEF5B404D05360854D3FBC@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4B623BED.6090603@xxxxxxxxxxxxx> <EF547E542C520A4D858CFEF5B404D05360854D3FBC@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100122 Thunderbird/3.0.1
Big thanks to Renato and George -- I now have OProfile working for
active PV domains. The key was that my guest kernel didn't have the
xenoprof patches. I built the 2.6.18-xenU kernel/modules from
xen-unstable and pushed those to my domU. I had to `make menuconfig` to
set CONFIG_PROFILING=y and CONFIG_OPROFILE=m after doing the `make
KERNELS=linux-2.6-xenU kernels` from the top of my xen-unstable.hg tree.
I also had to mkinitrd again to create a ramdisk compatible with the new
kernel.

Now `opreport -l` in dom0 shows output like this:

CPU: Core 2, speed 2500.01 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a
unit mask of 0x00 (Unhalted core cycles) count 1000000
samples  %        app name                 symbol name
219      12.1734  vmlinux-unknown          (no symbols)
158       8.7827  e1000e                   (no symbols)
115       6.3924  vmlinux                  .text.read_sb_page
94        5.2251  xen-unknown              (no symbols)
72        4.0022  libpython2.4.so.1.0      (no symbols)
49        2.7237  vmlinux                  xfrm_state_find
44        2.4458  vmlinux                  .text.md_ioctl
37        2.0567  bridge                   (no symbols)
34        1.8899  netbk                    (no symbols)

I'm running a different kernel in the domU to the one in my dom0, and it
doesn't appear to be possible to pass multiple vmlinux paths to
opcontrol. Renato's
http://www.xen.org/files/summit_3/xenoprof_tutorial.pdf uses the same
kernel in dom0 and domU. Is that a requirement, or is there a way for me
to point oprofiled or opreport to my guest kernel's debug symbols too?

thanks,

-Andrew


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