From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ahmad Hassan Subject: Re: XENOPROF Problem Date: Thu, 11 Feb 2010 23:52:58 +0000 Message-ID: References: <4B749528.9060601@yahoo-inc.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0722338679==" Return-path: In-Reply-To: <4B749528.9060601@yahoo-inc.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andrew Evans Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0722338679== Content-Type: multipart/alternative; boundary=001636498bfde5d8b6047f5bda6f --001636498bfde5d8b6047f5bda6f Content-Type: text/plain; charset=ISO-8859-1 Hi Andrew, Thanks for the message. That looks right to me. You also need Xenoprof support in your dom0 kernel. > If you're using one of the kernels from the Xen source tree and you can > `modprobe oprofile` successfully, you should be ok. > Yes I loaded the oprofile as "modprobe oprofile". It loads successfully. > > > Dom0: opcontrol --start-daemon --event= CPU_IO_REQUESTS_TO_MEMORY_IO:1000000 > --xen=/boot/xen-syms-3.4.1 --vmlinux=/boot/vmlinux --passive-domains=1 > --passive-images=/boot/vmlinux > *At the above command, I get the warning as : > /dev/oprofile/passive-domains Permission Denied* but daemon starts > eventually > > If i start the Dom0 daemon for passive domains using the above command the the following exact output I get *At the above command, I get the warning as : /dev/oprofile/passive-domains Permission Denied* *Using* *2*.*6*+ *OProfile* *kernel* interface. *Using* *log* *file* /*var*/*lib*/*oprofile*/*oprofiled*.*log* *Daemon* *started*. *Profiler* *running* Yes I am running it as a root. If I look at the * /dev/oprofile the I don't find any file name passive-domains. Opreport -l shows the following error: * "opreport error: No sample file found: try running opcontrol --dump or specfiy a session containing sample file" When I try active-domains option then inside DomU, I get the following error while starting the daemon: *"You cannot specify any performance counter events because OProfile is in timer mode.*" Why the above error appears for active domains? Do I need to pass "lapic" parameter in the grub file of dom0? Thanks for the help Best Regards, Hassan --001636498bfde5d8b6047f5bda6f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Andrew,

Thanks for the message.

That looks right to me. You also need Xenoprof support in your dom0 kernel. If you're using one of the kernels from the Xen source tree and you can `modprobe oprofile` successfully, you should be ok.

Yes I loaded the oprofile as "modprobe oprofile". It = loads successfully.


Dom0: opcontrol --start-daemon --event=3D =20 =20 =20 =20 =20 =20 =20 CPU_IO_REQUESTS_TO_MEMORY_IO:1000000 --xen=3D/boot/xen-syms-3.4.1=A0=A0 --vmlinux=3D/boot/vmlinux=A0 --passive-domains=3D1 --passive-images=3D/boot/vmlinux
At the above command, I get the warning as : /dev/oprofile/passive-domains Permission Denied but daemon starts eventually

If i sta= rt the Dom0 daemon for passive domains using the above command=A0 the the f= ollowing exact output I get

At the above command, I get the warning as : /dev/oprofile/passive-domains Permission Denied
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/o= profiled.log
Daemon started.=
Profiler running


Yes I am running it as a root. If I look= at the /dev/oprofile the I don't find any file name passive-domains.

O= preport -l shows the following error:

"opreport error: No sample file found: try running opcontrol --dump or specfiy a session containing sample file"


When I try act= ive-domains option then inside DomU, I get the following error while starti= ng the daemon:

"You cannot specify any performance counter e= vents because OProfile is in timer mode."

Why the above error appears for active domains? Do I need to pass "= ;lapic" parameter in the grub file of dom0?

Thanks for the help=

Best Regards, Hassan

--001636498bfde5d8b6047f5bda6f-- --===============0722338679== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0722338679==--