All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Evans <andrewe@yahoo-inc.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	"Santos, Jose Renato G" <joserenato.santos@hp.com>
Subject: Re: profiling active RHEL 4 PV domains with xenoprof
Date: Fri, 29 Jan 2010 16:24:27 -0800	[thread overview]
Message-ID: <4B637C3B.8070000@yahoo-inc.com> (raw)
In-Reply-To: <EF547E542C520A4D858CFEF5B404D05360854D3FBC@GVW0673EXC.americas.hpqcorp.net>

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

  parent reply	other threads:[~2010-01-30  0:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29  1:37 profiling active RHEL 4 PV domains with xenoprof Andrew Evans
2010-01-29 12:41 ` George Dunlap
2010-01-29 21:11   ` Andrew Evans
2010-01-29 17:04 ` Santos, Jose Renato G
2010-01-29 17:50   ` Dulloor
2010-01-29 21:14     ` Andrew Evans
2010-01-29 18:00   ` Andrew Evans
2010-01-30  0:24   ` Andrew Evans [this message]
2010-01-31 21:20     ` Santos, Jose Renato G
2010-02-01 18:40       ` Andrew Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B637C3B.8070000@yahoo-inc.com \
    --to=andrewe@yahoo-inc.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=joserenato.santos@hp.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.