Hello Xen Users, I am using oprofile-0.9.2 along with Xen-unstable which has inbuilt support for Xenoprof and Oprofile. I have everything installed fine (i.e. Oprofile.ko is at the right place) but still I am having the following problem. When I try to use oprofile with the Host OS, I get the following error: opcontrol --xen=/boot/xen-syms-3.0-unstable /usr/local/bin/opcontrol: line 1490: check_valid_xen: command not found When I use oprofile on a guest OS, I get the following error: opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen /usr/local/bin/opcontrol: line 1490: check_valid_xen: command not found It seems that opcontrol is not able to find a script called "check_valid_xen". Does anyone has any suggestions. Thanks, Nikhil _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
William Cohen
2006-Sep-20 17:34 UTC
Re: [Xen-devel] Oprofile-0.9.2 problem with xen-unstable
Bhatia, Nikhil wrote:> Hello Xen Users, > > > > I am using oprofile-0.9.2 along with Xen-unstable which has inbuilt > support for Xenoprof and Oprofile. I have everything installed fine > (i.e. Oprofile.ko is at the right place) but still I am having the > following problem. > > > > When I try to use oprofile with the Host OS, I get the following error: > > > > opcontrol --xen=/boot/xen-syms-3.0-unstable > > /usr/local/bin/opcontrol: line 1490: check_valid_xen: command not found > > > > When I use oprofile on a guest OS, I get the following error: > > > > opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen > > /usr/local/bin/opcontrol: line 1490: check_valid_xen: command not found > > > > > > It seems that opcontrol is not able to find a script called > “check_valid_xen”. Does anyone has any suggestions. > > > > Thanks, > > NikhilI looked through opcontrol for oprofile-0.9.2 and didn''t see a check_valid_xen in the script. The stock OProfile 0.9.2 has support for active profiling. However, It doesn''t have the newer patch that includes support for passive domain profiling. Is this a stock version of OProfile 0.9.2? I suspect that a patch being used to update the xen support might not be quite right. The newer xenoprof patch for oprofile has a check_valid_xen() in opcontrol. Earlier in the week I applied both the old and new versions of the xenoprof patch to oprofile-0.9.1 and did a diff of the directories to get an incremental patch. I haven''t tested this on xen so I don''t know if it works. I have attached the patch in question. -Will _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Bhatia, Nikhil
2006-Sep-20 18:35 UTC
[Xen-users] RE: [Xen-devel] Oprofile-0.9.2 problem with xen-unstable
Hello Will, Padma and All, I will try the patch the oprofile-0.9.2 by the new patch given by you. For now, I am trying to use the oprofile-0.9.1 and am able to start oprofile profiler on the host OS. However, when I try to do it on the guest OS, I get the following error: This worked !!!!! vm01:~# opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen however this failed !!! vm01:~# opcontrol --start Using default event: CPU_CLK_UNHALTED:100000:0:1:1 Using 2.6+ OProfile kernel interface. Reading module info. Failed to open profile device: Operation not permitted Couldn''t start oprofiled. Check the log file "/var/lib/oprofile/oprofiled.log" and kernel syslog Do you have any ideas? Thanks, Nikhil -----Original Message----- From: William Cohen [mailto:wcohen@redhat.com] Sent: Wednesday, September 20, 2006 1:35 PM To: Bhatia, Nikhil Cc: xen-users@lists.xensource.com; xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Oprofile-0.9.2 problem with xen-unstable Bhatia, Nikhil wrote:> Hello Xen Users, > > > > I am using oprofile-0.9.2 along with Xen-unstable which has inbuilt > support for Xenoprof and Oprofile. I have everything installed fine > (i.e. Oprofile.ko is at the right place) but still I am having the > following problem. > > > > When I try to use oprofile with the Host OS, I get the followingerror:> > > > opcontrol --xen=/boot/xen-syms-3.0-unstable > > /usr/local/bin/opcontrol: line 1490: check_valid_xen: command notfound> > > > When I use oprofile on a guest OS, I get the following error: > > > > opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen > > /usr/local/bin/opcontrol: line 1490: check_valid_xen: command notfound> > > > > > It seems that opcontrol is not able to find a script called > "check_valid_xen". Does anyone has any suggestions. > > > > Thanks, > > NikhilI looked through opcontrol for oprofile-0.9.2 and didn''t see a check_valid_xen in the script. The stock OProfile 0.9.2 has support for active profiling. However, It doesn''t have the newer patch that includes support for passive domain profiling. Is this a stock version of OProfile 0.9.2? I suspect that a patch being used to update the xen support might not be quite right. The newer xenoprof patch for oprofile has a check_valid_xen() in opcontrol. Earlier in the week I applied both the old and new versions of the xenoprof patch to oprofile-0.9.1 and did a diff of the directories to get an incremental patch. I haven''t tested this on xen so I don''t know if it works. I have attached the patch in question. -Will _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William Cohen
2006-Sep-20 19:36 UTC
[Xen-users] Re: [Xen-devel] Oprofile-0.9.2 problem with xen-unstable
Bhatia, Nikhil wrote:> Hello Will, Padma and All, > > I will try the patch the oprofile-0.9.2 by the new patch given by you. > For now, I am trying to use the oprofile-0.9.1 and am able to start > oprofile profiler on the host OS. However, when I try to do it on the > guest OS, I get the following error: > > This worked !!!!! > vm01:~# opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen > > however this failed !!! > vm01:~# opcontrol --start > Using default event: CPU_CLK_UNHALTED:100000:0:1:1 > Using 2.6+ OProfile kernel interface. > Reading module info. > Failed to open profile device: Operation not permitted > Couldn''t start oprofiled. > Check the log file "/var/lib/oprofile/oprofiled.log" and kernel syslog > > Do you have any ideas? > > Thanks, > NikhilWas there any interesting information in /var/lib/oprofile/oprofiled.log? OProfile stores configuration in /root/.oprofile/daemonrc. Does it make any difference whether there was a successful configuration before running? For the time that it didn''t work did the oprofile kernel module get loaded? One trick that you can do to find out what is being executed in opcontrol script is put "-x" at the end of the first line of opcontrol: #!/bin/sh -x This should give a trace of opcontrol. -Will _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users