I am running the latest xen-unstable on linux 2.6.16.13. I get the following errors on trying to start Oprofile in the guest Operation 8 failed for domid 1 (sattus=-1). Could not open profiled device And operation 8 in xenoprof.h is enable_virq. I have debugged a bit and found that the active_index is returning -1 for the guest domid. Renato suggests debugging the XENOPROF hypercall set_active as it may not be adding the domain to the active list. Before I go and start debugging the hypercalls, was wondering if anyone has experienced such an error and if there is a quick fix to it. Maybe something not setup correctly on my machine. This is a fresh build Xen with all new sources (cleaned up all my old stuff). Thanks - Padma _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
"Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes:> I am running the latest xen-unstable on linux 2.6.16.13. I get the following > errors on trying to start Oprofile in the guest > > Operation 8 failed for domid 1 (sattus=-1). Could not open profiled device > > And operation 8 in xenoprof.h is enable_virq. > > > > I have debugged a bit and found that the active_index is returning -1 for the > guest domid. > > Renato suggests debugging the XENOPROF hypercall set_active as it may not be > adding the domain to the active list.Quick sanity check: what''s the contents of /dev/oprofile/active_domains on your primary domain? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparao, Padmashree K
2006-May-26 19:02 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
The files under /dev/Oprofile contain nothing. Active_domains has nothing in it Thanks - Padma -----Original Message----- From: Markus Armbruster [mailto:armbru@redhat.com] Sent: Friday, May 26, 2006 11:40 AM To: Apparao, Padmashree K Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes:> I am running the latest xen-unstable on linux 2.6.16.13. I get thefollowing> errors on trying to start Oprofile in the guest > > Operation 8 failed for domid 1 (sattus=-1). Could not open profileddevice> > And operation 8 in xenoprof.h is enable_virq. > > > > I have debugged a bit and found that the active_index is returning -1for the> guest domid. > > Renato suggests debugging the XENOPROF hypercall set_active as it maynot be> adding the domain to the active list.Quick sanity check: what''s the contents of /dev/oprofile/active_domains on your primary domain? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
"Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes:> The files under /dev/Oprofile contain nothing. > Active_domains has nothing in itLooks like you didn''t succeed in declaring your active domains. How exactly did you specify --active-domains? You did read and follow the user guide[*], didn''t you? [*] http://xenoprof.sourceforge.net/xenoprof_2.0.txt _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-May-26 21:04 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
This probably means that your dom0 is missing some xenoprofile patch. either kernel or oprofile tools. It is not setting the list of active domains. Renato>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Apparao, Padmashree K >> Sent: Friday, May 26, 2006 12:03 PM >> To: Markus Armbruster >> Cc: xen-devel@lists.xensource.com >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> The files under /dev/Oprofile contain nothing. >> Active_domains has nothing in it >> >> Thanks >> - Padma >> >> >> -----Original Message----- >> From: Markus Armbruster [mailto:armbru@redhat.com] >> Sent: Friday, May 26, 2006 11:40 AM >> To: Apparao, Padmashree K >> Cc: xen-devel@lists.xensource.com >> Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable >> >> "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes: >> >> > I am running the latest xen-unstable on linux 2.6.16.13. I get the >> following >> > errors on trying to start Oprofile in the guest >> > >> > Operation 8 failed for domid 1 (sattus=-1). Could not open profiled >> device >> > >> > And operation 8 in xenoprof.h is enable_virq. >> > >> > >> > >> > I have debugged a bit and found that the active_index is >> returning -1 >> for the >> > guest domid. >> > >> > Renato suggests debugging the XENOPROF hypercall >> set_active as it may >> not be >> > adding the domain to the active list. >> >> Quick sanity check: what''s the contents of >> /dev/oprofile/active_domains on your primary domain? >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-May-26 21:09 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
Actually, it should not be missing kernel patches, since I belive you are using latest xen-unstable. But it could be that your oprofile user levels tools are not patched... Renato>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Santos, Jose Renato G >> Sent: Friday, May 26, 2006 2:04 PM >> To: Apparao, Padmashree K; Markus Armbruster >> Cc: xen-devel@lists.xensource.com >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> This probably means that your dom0 is missing some xenoprofile patch. >> either kernel or oprofile tools. >> It is not setting the list of active domains. >> Renato >> >> >> -----Original Message----- >> >> From: xen-devel-bounces@lists.xensource.com >> >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf >> Of Apparao, >> >> Padmashree K >> >> Sent: Friday, May 26, 2006 12:03 PM >> >> To: Markus Armbruster >> >> Cc: xen-devel@lists.xensource.com >> >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> >> >> The files under /dev/Oprofile contain nothing. >> >> Active_domains has nothing in it >> >> >> >> Thanks >> >> - Padma >> >> >> >> >> >> -----Original Message----- >> >> From: Markus Armbruster [mailto:armbru@redhat.com] >> >> Sent: Friday, May 26, 2006 11:40 AM >> >> To: Apparao, Padmashree K >> >> Cc: xen-devel@lists.xensource.com >> >> Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable >> >> >> >> "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes: >> >> >> >> > I am running the latest xen-unstable on linux >> 2.6.16.13. I get the >> >> following >> >> > errors on trying to start Oprofile in the guest >> >> > >> >> > Operation 8 failed for domid 1 (sattus=-1). Could not >> open profiled >> >> device >> >> > >> >> > And operation 8 in xenoprof.h is enable_virq. >> >> > >> >> > >> >> > >> >> > I have debugged a bit and found that the active_index is >> >> returning -1 >> >> for the >> >> > guest domid. >> >> > >> >> > Renato suggests debugging the XENOPROF hypercall >> >> set_active as it may >> >> not be >> >> > adding the domain to the active list. >> >> >> >> Quick sanity check: what''s the contents of >> >> /dev/oprofile/active_domains on your primary domain? >> >> >> >> _______________________________________________ >> >> Xen-devel mailing list >> >> Xen-devel@lists.xensource.com >> >> http://lists.xensource.com/xen-devel >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparao, Padmashree K
2006-May-26 21:34 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
Ok, I have downloaded the latest xen-unstable from http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads.html xen-unstable-src.tgz and built the kernels. On the guest I have taken Oprofile 0.9.1.tar, untarred it and patched that with oprofile-0.9.1-xen.patch Did a configure, make and make install in the guest - Padma -----Original Message----- From: Santos, Jose Renato G [mailto:joserenato.santos@hp.com] Sent: Friday, May 26, 2006 2:09 PM To: Santos, Jose Renato G; Apparao, Padmashree K; Markus Armbruster Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable Actually, it should not be missing kernel patches, since I belive you are using latest xen-unstable. But it could be that your oprofile user levels tools are not patched... Renato>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Santos, Jose Renato G >> Sent: Friday, May 26, 2006 2:04 PM >> To: Apparao, Padmashree K; Markus Armbruster >> Cc: xen-devel@lists.xensource.com >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> This probably means that your dom0 is missing some xenoprofile patch. >> either kernel or oprofile tools. >> It is not setting the list of active domains. >> Renato >> >> >> -----Original Message----- >> >> From: xen-devel-bounces@lists.xensource.com >> >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf >> Of Apparao, >> >> Padmashree K >> >> Sent: Friday, May 26, 2006 12:03 PM >> >> To: Markus Armbruster >> >> Cc: xen-devel@lists.xensource.com >> >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> >> >> The files under /dev/Oprofile contain nothing. >> >> Active_domains has nothing in it >> >> >> >> Thanks >> >> - Padma >> >> >> >> >> >> -----Original Message----- >> >> From: Markus Armbruster [mailto:armbru@redhat.com] >> >> Sent: Friday, May 26, 2006 11:40 AM >> >> To: Apparao, Padmashree K >> >> Cc: xen-devel@lists.xensource.com >> >> Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable >> >> >> >> "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes: >> >> >> >> > I am running the latest xen-unstable on linux >> 2.6.16.13. I get the >> >> following >> >> > errors on trying to start Oprofile in the guest >> >> > >> >> > Operation 8 failed for domid 1 (sattus=-1). Could not >> open profiled >> >> device >> >> > >> >> > And operation 8 in xenoprof.h is enable_virq. >> >> > >> >> > >> >> > >> >> > I have debugged a bit and found that the active_index is >> >> returning -1 >> >> for the >> >> > guest domid. >> >> > >> >> > Renato suggests debugging the XENOPROF hypercall >> >> set_active as it may >> >> not be >> >> > adding the domain to the active list. >> >> >> >> Quick sanity check: what''s the contents of >> >> /dev/oprofile/active_domains on your primary domain? >> >> >> >> _______________________________________________ >> >> Xen-devel mailing list >> >> Xen-devel@lists.xensource.com >> >> http://lists.xensource.com/xen-devel >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparao, Padmashree K
2006-May-26 21:37 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
Here is the commands used in dom0 /usr/local/bin/opcontrol --deinit /usr/local/bin/opcontrol --reset /usr/local/bin/opcontrol --active-domains=5 --event=GLOBAL_POWER_EVENTS:3000000:1:1:1 --event=INSTR_RETIRED:3000000:1:1:1 /usr/local/bin/opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen --xen=/boot/xen-syms-3.0-unstable --start-daemon Where xm list shows Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 512 4 r----- 282.7 Guest1 5 256 1 -b---- 131.6 Thanks - Padma -----Original Message----- From: Markus Armbruster [mailto:armbru@redhat.com] Sent: Friday, May 26, 2006 1:59 PM To: Apparao, Padmashree K Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes:> The files under /dev/Oprofile contain nothing. > Active_domains has nothing in itLooks like you didn''t succeed in declaring your active domains. How exactly did you specify --active-domains? You did read and follow the user guide[*], didn''t you? [*] http://xenoprof.sourceforge.net/xenoprof_2.0.txt _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-May-26 22:10 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
Padma, Ah! Try using the --active-domains=5 option on the same command you start the daemon (--start-daemon). I had forgotten that we chose to make the --active-domains option not persistent. That means opcontrol does not remember --active-domains of previous runs(commands). The rationale for doing that was to avoid problems for users that wanted to run oprofile in dom0 after had run with multiple domains. It seemed awkard to force a user to run opcontrol with the option "--active-domains=0" to erase the value used in previous runs. So we decided to make this option volatile (i.e. valid only for the command where it appears). I guess this needs to be documented in the man pages ... Please let me know if this fixes your problem Renato>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Apparao, Padmashree K >> Sent: Friday, May 26, 2006 2:38 PM >> To: Markus Armbruster >> Cc: xen-devel@lists.xensource.com >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> >> Here is the commands used in dom0 >> >> /usr/local/bin/opcontrol --deinit >> /usr/local/bin/opcontrol --reset >> /usr/local/bin/opcontrol --active-domains=5 >> --event=GLOBAL_POWER_EVENTS:3000000:1:1:1 >> --event=INSTR_RETIRED:3000000:1:1:1 >> >> /usr/local/bin/opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen >> --xen=/boot/xen-syms-3.0-unstable --start-daemon >> >> Where xm list shows >> >> Name ID Mem(MiB) VCPUs State Time(s) >> Domain-0 0 512 4 r----- 282.7 >> Guest1 5 256 1 -b---- 131.6 >> >> >> Thanks >> - Padma >> >> -----Original Message----- >> From: Markus Armbruster [mailto:armbru@redhat.com] >> Sent: Friday, May 26, 2006 1:59 PM >> To: Apparao, Padmashree K >> Cc: xen-devel@lists.xensource.com >> Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable >> >> "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes: >> >> > The files under /dev/Oprofile contain nothing. >> > Active_domains has nothing in it >> >> Looks like you didn''t succeed in declaring your active >> domains. How exactly did you specify --active-domains? You >> did read and follow the user guide[*], didn''t you? >> >> [*] http://xenoprof.sourceforge.net/xenoprof_2.0.txt >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, May 26, 2006 at 03:10:46PM -0700, Santos, Jose Renato G wrote:> Ah! Try using the --active-domains=5 option on the same command you > start the daemon (--start-daemon). I had forgotten that we chose to make > the --active-domains option not persistent. That means opcontrol does > not remember --active-domains of previous runs(commands). The rationale > for doing that was to avoid problems for users that wanted to run > oprofile in dom0 after had run with multiple domains. It seemed awkard > to force a user to run opcontrol with the option "--active-domains=0" to > erase the value used in previous runs. So we decided to make this option > volatile (i.e. valid only for the command where it appears). I guess > this needs to be documented in the man pages ...We should make it error out unless --start or --start-daemon has been specified. regards john _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2006-May-27 01:00 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
Right, I will work out a patch for that Renato>> -----Original Message----- >> From: John Levon [mailto:levon@movementarian.org] >> Sent: Friday, May 26, 2006 5:44 PM >> To: Santos, Jose Renato G >> Cc: Apparao, Padmashree K; Markus Armbruster; >> xen-devel@lists.xensource.com >> Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable >> >> On Fri, May 26, 2006 at 03:10:46PM -0700, Santos, Jose >> Renato G wrote: >> >> > Ah! Try using the --active-domains=5 option on the same >> command you >> > start the daemon (--start-daemon). I had forgotten that we >> chose to >> > make the --active-domains option not persistent. That >> means opcontrol >> > does not remember --active-domains of previous runs(commands). The >> > rationale for doing that was to avoid problems for users >> that wanted >> > to run oprofile in dom0 after had run with multiple >> domains. It seemed >> > awkard to force a user to run opcontrol with the option >> > "--active-domains=0" to erase the value used in previous >> runs. So we >> > decided to make this option volatile (i.e. valid only for >> the command >> > where it appears). I guess this needs to be documented in >> the man pages ... >> >> We should make it error out unless --start or --start-daemon >> has been specified. >> >> regards >> john >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparao, Padmashree K
2006-May-27 01:09 UTC
RE: [Xen-devel] Xenoprof errors with Xen-unstable
Renato, Thanks. You have hit the nail on the head. That was the problem. I have tried it a few times and it works! Regards - Padma -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Santos, Jose Renato G Sent: Friday, May 26, 2006 3:11 PM To: Apparao, Padmashree K; Markus Armbruster Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable Padma, Ah! Try using the --active-domains=5 option on the same command you start the daemon (--start-daemon). I had forgotten that we chose to make the --active-domains option not persistent. That means opcontrol does not remember --active-domains of previous runs(commands). The rationale for doing that was to avoid problems for users that wanted to run oprofile in dom0 after had run with multiple domains. It seemed awkard to force a user to run opcontrol with the option "--active-domains=0" to erase the value used in previous runs. So we decided to make this option volatile (i.e. valid only for the command where it appears). I guess this needs to be documented in the man pages ... Please let me know if this fixes your problem Renato>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >> Apparao, Padmashree K >> Sent: Friday, May 26, 2006 2:38 PM >> To: Markus Armbruster >> Cc: xen-devel@lists.xensource.com >> Subject: RE: [Xen-devel] Xenoprof errors with Xen-unstable >> >> >> Here is the commands used in dom0 >> >> /usr/local/bin/opcontrol --deinit >> /usr/local/bin/opcontrol --reset >> /usr/local/bin/opcontrol --active-domains=5 >> --event=GLOBAL_POWER_EVENTS:3000000:1:1:1 >> --event=INSTR_RETIRED:3000000:1:1:1 >> >> /usr/local/bin/opcontrol --vmlinux=/boot/vmlinux-syms-2.6.16.13-xen >> --xen=/boot/xen-syms-3.0-unstable --start-daemon >> >> Where xm list shows >> >> Name ID Mem(MiB) VCPUs State Time(s) >> Domain-0 0 512 4 r----- 282.7 >> Guest1 5 256 1 -b---- 131.6 >> >> >> Thanks >> - Padma >> >> -----Original Message----- >> From: Markus Armbruster [mailto:armbru@redhat.com] >> Sent: Friday, May 26, 2006 1:59 PM >> To: Apparao, Padmashree K >> Cc: xen-devel@lists.xensource.com >> Subject: Re: [Xen-devel] Xenoprof errors with Xen-unstable >> >> "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> writes: >> >> > The files under /dev/Oprofile contain nothing. >> > Active_domains has nothing in it >> >> Looks like you didn''t succeed in declaring your active >> domains. How exactly did you specify --active-domains? You >> did read and follow the user guide[*], didn''t you? >> >> [*] http://xenoprof.sourceforge.net/xenoprof_2.0.txt >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Friday 26 May 2006 20:00, Santos, Jose Renato G wrote:> Right, > I will work out a patch for that > Renato >Please do so. :-) This was (at least one of the problems) I was having with passive domains as well. (Note: for passive domains, --passive-domains and --passive-images must also appear on the same opcontrol command line as --start-daemon.) -- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel