All of lore.kernel.org
 help / color / mirror / Atom feed
* xenoprof with 2.6.9 kernel - "timer mode" problem
@ 2007-10-22 10:36 jowkju
  2007-10-23 23:03 ` Santos, Jose Renato G
  0 siblings, 1 reply; 2+ messages in thread
From: jowkju @ 2007-10-22 10:36 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1176 bytes --]

Hello, xen users,

I installed XenServer-v3.2.0 on my Dell PowerEdge 6850 and compiled dom0
kernel with oprofile support enabled.

I also made a guest VM -Centos 4.5 with kernel 2.6.9 through "p2v".  And
then I newly compiled the guest VM kernel 

with "oprofile support enabled" using the following source RPM for xenoprof
test

 

kernel-2.6.9-42.0.8.EL.xs3.2.0.284.src.rpm

 

During compiling the kernel, the xen.patch file doesn't activate the
"profiling support" when X86_XEN is enabled. So I fixed it

to enable "profiling support" even though it sets X86_XEN.

 

-----

Just remove the "!" on the following code

 

>> xen.patch

arch/i386/Kconfig

 

274 +if !X86_XEN

    275  source "arch/i386/oprofile/Kconfig"

    276 +endif

 

----

 

And then I try to use oprofile on both dom0 kernel and domU kernel. But when
I start a profiling daemon on the 

domU kernel with the event "GLOBAL_POWER_EVENT", the messages said,

 

You cannot specify any performance counter events

because OProfile is in timer mode.

 

How can I get solved this problem? Is there anybody who let me know how to
enter the event counter mode 

instead of timer mode?? 

 

Thank you!!


[-- Attachment #1.2: Type: text/html, Size: 5082 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: xenoprof with 2.6.9 kernel - "timer mode" problem
  2007-10-22 10:36 xenoprof with 2.6.9 kernel - "timer mode" problem jowkju
@ 2007-10-23 23:03 ` Santos, Jose Renato G
  0 siblings, 0 replies; 2+ messages in thread
From: Santos, Jose Renato G @ 2007-10-23 23:03 UTC (permalink / raw)
  To: jowkju, xen-devel

 

>> -----Original Message-----
>> From: xen-devel-bounces@lists.xensource.com 
>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of jowkju
>> Sent: Monday, October 22, 2007 3:36 AM
>> To: xen-devel@lists.xensource.com
>> Subject: [Xen-devel] xenoprof with 2.6.9 kernel - "timer 
>> mode" problem
>> 
>> Hello, xen users,
>> 
>> I installed XenServer-v3.2.0 on my Dell PowerEdge 6850 and 
>> compiled dom0 kernel with oprofile support enabled.
>> 
>> I also made a guest VM -Centos 4.5 with kernel 2.6.9 through 
>> "p2v".  And then I newly compiled the guest VM kernel 
>> 
>> with "oprofile support enabled" using the following source 
>> RPM for xenoprof test
>> 

  Xenoprof does not enable profiling from the guest as it does not
virtualize performance counters.
  It only allows system wide profiling from dom0.
  You can still get profile info for the guest using the
"--passive-domains" option in opcontrol, but you have to start opcontrol
from dom0. There is also an "--active-domain" option, but it requires a
complex configuration and only recommended if you really need detailed
user level code profiling in the guest. This option also requires
starting opcontrol from dom0.
  If you run opcontrol only in the guest you will not be able to use
performance counters but only timer mode.

  You may want to check
http://xen.xensource.com/files/summit_3/xenoprof_tutorial.pdf for more
details. It is a little outdated and the version numbers have changed
but it shows the basic steps for using XenOprofile

Renato

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-23 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-22 10:36 xenoprof with 2.6.9 kernel - "timer mode" problem jowkju
2007-10-23 23:03 ` Santos, Jose Renato G

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.