Hi , I am getting following error when i try to run xenoprof /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument Using 2.6+ OProfile kernel interface. Reading module info. Using log file /var/lib/oprofile/oprofiled.log Daemon started. what is this write error ? Any help is really appreciated. -John _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Any help with following mail will be great. I am using oprofile 0.9.2. Also, when i run"opreport -l" I get segmentation fault. Running "opreport" works correctly. Any help will be great. I am using fedora core. -John On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com> wrote:> Hi , > > I am getting following error when i try to run xenoprof > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument > Using 2.6+ OProfile kernel interface. > Reading module info. > Using log file /var/lib/oprofile/oprofiled.log > Daemon started. > > what is this write error ? > > Any help is really appreciated. > > -John > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi. For those who are new to xenoprof ( e.g. Todd), I have installed xenorpof patch from following website (please follow the instructions): http://xenoprof.sourceforge.net/ For oprofile, I have downloaded from http://oprofile.sourceforge.net/news/ I have used oprofile 0.9.2 -John On Feb 3, 2008 10:51 PM, Todd Deshane <deshantm@gmail.com> wrote:> Hi John, > > I don''t think you provided the list with enough information. How did you > get to this point? What did you install etc.? For example I don''t have a > opcontrol file that I am aware of. > > I don''t have much experience with xenoprof either. Could you provide links > or packages and a litlle more background into the problem? > > Best Regards, > Todd > > On Feb 3, 2008 6:57 PM, john bryant <bryant.johan@gmail.com> wrote: > > > Hi, > > > > Any help with following mail will be great. I am using oprofile 0.9.2. > > Also, when i run"opreport -l" I get segmentation fault. Running "opreport" > > works correctly. Any help will be great. I am using fedora core. > > > > -John > > > > > > On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com> wrote: > > > > > Hi , > > > > > > I am getting following error when i try to run xenoprof > > > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > > argument > > > Using 2.6+ OProfile kernel interface. > > > Reading module info. > > > Using log file /var/lib/oprofile/oprofiled.log > > > Daemon started. > > > > > > what is this write error ? > > > > > > Any help is really appreciated. > > > > > > -John > > > > > > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Is there a xenoprof developer who can help me ? On Feb 3, 2008 11:33 PM, john bryant <bryant.johan@gmail.com> wrote:> Hi. > > For those who are new to xenoprof ( e.g. Todd), I have installed xenorpof > patch from following website (please follow the instructions): > http://xenoprof.sourceforge.net/ > > For oprofile, I have downloaded from > http://oprofile.sourceforge.net/news/ > I have used oprofile 0.9.2 > > -John > > > > On Feb 3, 2008 10:51 PM, Todd Deshane <deshantm@gmail.com> wrote: > > > Hi John, > > > > I don''t think you provided the list with enough information. How did you > > get to this point? What did you install etc.? For example I don''t have a > > opcontrol file that I am aware of. > > > > I don''t have much experience with xenoprof either. Could you provide > > links or packages and a litlle more background into the problem? > > > > Best Regards, > > Todd > > > > On Feb 3, 2008 6:57 PM, john bryant <bryant.johan@gmail.com> wrote: > > > > > Hi, > > > > > > Any help with following mail will be great. I am using oprofile 0.9.2. > > > Also, when i run"opreport -l" I get segmentation fault. Running "opreport" > > > works correctly. Any help will be great. I am using fedora core. > > > > > > -John > > > > > > > > > On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com> wrote: > > > > > > > Hi , > > > > > > > > I am getting following error when i try to run xenoprof > > > > > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > > > argument > > > > Using 2.6+ OProfile kernel interface. > > > > Reading module info. > > > > Using log file /var/lib/oprofile/oprofiled.log > > > > Daemon started. > > > > > > > > what is this write error ? > > > > > > > > Any help is really appreciated. > > > > > > > > -John > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John, Maybe you can post some more details on what exactly you''ve been running, Xen version, Dom0 kernel version, how exactly did you start xenoprofile and when exactly do you get the first error? Also, please provide more detailed logs from the segmentation fault that you see. That would be very helpful. ________________________________ From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of john bryant Sent: 04 February 2008 21:06 To: xen-users@lists.xensource.com; xen-devel@lists.xensource.com Subject: Re: [Xen-users] Re: xenoprof error Is there a xenoprof developer who can help me ? On Feb 3, 2008 11:33 PM, john bryant <bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote: Hi. For those who are new to xenoprof ( e.g. Todd), I have installed xenorpof patch from following website (please follow the instructions): http://xenoprof.sourceforge.net/ For oprofile, I have downloaded from http://oprofile.sourceforge.net/news/ I have used oprofile 0.9.2 -John On Feb 3, 2008 10:51 PM, Todd Deshane <deshantm@gmail.com<mailto:deshantm@gmail.com>> wrote: Hi John, I don''t think you provided the list with enough information. How did you get to this point? What did you install etc.? For example I don''t have a opcontrol file that I am aware of. I don''t have much experience with xenoprof either. Could you provide links or packages and a litlle more background into the problem? Best Regards, Todd On Feb 3, 2008 6:57 PM, john bryant <bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote: Hi, Any help with following mail will be great. I am using oprofile 0.9.2. Also, when i run"opreport -l" I get segmentation fault. Running "opreport" works correctly. Any help will be great. I am using fedora core. -John On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote: Hi , I am getting following error when i try to run xenoprof /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument Using 2.6+ OProfile kernel interface. Reading module info. Using log file /var/lib/oprofile/oprofiled.log Daemon started. what is this write error ? Any help is really appreciated. -John _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com<mailto:Xen-users@lists.xensource.com> http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Anna, Thanks for helping me. I am novice in Xen. I have installed xen 3.0.4 and oprofile 0.9.2. Dom0 and DomU kernel is 2.6.16.33-xen. Let us take a simple case when there is one VM only. In this case, following is sequence of commands I type:> opcontrol --reset > opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1--xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux-syms-2.6.16.33-xen--active-domains=0 * I get following reply:* /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument Using 2.6+ OProfile kernel interface. Reading module info. Using log file /var/lib/oprofile/oprofiled.log Daemon started. *First question:* what is this invalid argument error ? Apparently, opcontrol starts and log (/var/lib/oprofile/oprofiled.log) does not indicate any error Now, assuming oprofile started correctly, I do some activity such as "ls" or run some of my C programs. Then i follow this command sequence:> opcontrol --dump> opreportThis gives following error (warning seems ok as i have not given some of symbol files): warning: /bridge could not be found. warning: /ehci_hcd could not be found. warning: /evdev could not be found. warning: /ext3 could not be found. warning: /jbd could not be found. warning: /oprofile could not be found. warning: /tg3 could not be found. warning: /uhci_hcd could not be found. warning: /usbcore could not be found. warning: /xen-unknown could not be found. CPU: Core 2, speed 1995.03 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 Segmentation fault If I try only "opreport" I get following output (I am giving partial output as it seems ok): CPU: Core 2, speed 1995.03 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 CPU_CLK_UNHALT...| samples| %| ------------------ 33557 14.8824 libfb.so 31884 14.1404 libmozjs.so 26669 11.8276 xen-syms-3.0.4-1 26373 11.6963 libgklayout.so 19726 8.7484 libc-2.5.so 18600 8.2490 vmlinux-syms-2.6.16.33-xen 8806 3.9054 libxpcom_core.so 8342 3.6996 libxpconnect.so 5327 2.3625 Xorg CPU_CLK_UNHALT...| samples| %| So, why I am getting segmentation fault with "opreport -l" ( *Second Question* ). I am not sure what logs you may need or is there a way i can detect the fault ? let me know any other information I can give you. Thanks again. -John On Feb 4, 2008 4:20 PM, Fischer, Anna <anna.fischer@hp.com> wrote:> John, > Maybe you can post some more details on what exactly you''ve been running, > Xen version, Dom0 kernel version, how exactly did you start xenoprofile and > when exactly do you get the first error? Also, please provide more detailed > logs from the segmentation fault that you see. That would be very helpful. > > ------------------------------ > *From:* xen-users-bounces@lists.xensource.com [mailto: > xen-users-bounces@lists.xensource.com] *On Behalf Of *john bryant > *Sent:* 04 February 2008 21:06 > *To:* xen-users@lists.xensource.com; xen-devel@lists.xensource.com > *Subject:* Re: [Xen-users] Re: xenoprof error > > Is there a xenoprof developer who can help me ? > > On Feb 3, 2008 11:33 PM, john bryant <bryant.johan@gmail.com> wrote: > > > Hi. > > > > For those who are new to xenoprof ( e.g. Todd), I have installed > > xenorpof patch from following website (please follow the instructions): > > http://xenoprof.sourceforge.net/ > > > > For oprofile, I have downloaded from > > http://oprofile.sourceforge.net/news/ > > I have used oprofile 0.9.2 > > > > -John > > > > > > > > On Feb 3, 2008 10:51 PM, Todd Deshane <deshantm@gmail.com> wrote: > > > > > Hi John, > > > > > > I don''t think you provided the list with enough information. How did > > > you get to this point? What did you install etc.? For example I don''t have a > > > opcontrol file that I am aware of. > > > > > > I don''t have much experience with xenoprof either. Could you provide > > > links or packages and a litlle more background into the problem? > > > > > > Best Regards, > > > Todd > > > > > > On Feb 3, 2008 6:57 PM, john bryant <bryant.johan@gmail.com> wrote: > > > > > > > Hi, > > > > > > > > Any help with following mail will be great. I am using oprofile > > > > 0.9.2. Also, when i run"opreport -l" I get segmentation fault. > > > > Running "opreport" works correctly. Any help will be great. I am using > > > > fedora core. > > > > > > > > -John > > > > > > > > > > > > On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com> wrote: > > > > > > > > > Hi , > > > > > > > > > > I am getting following error when i try to run xenoprof > > > > > > > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > > > > argument > > > > > Using 2.6+ OProfile kernel interface. > > > > > Reading module info. > > > > > Using log file /var/lib/oprofile/oprofiled.log > > > > > Daemon started. > > > > > > > > > > what is this write error ? > > > > > > > > > > Any help is really appreciated. > > > > > > > > > > -John > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Xen-users mailing list > > > > Xen-users@lists.xensource.com > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks Anna for reply. It was certainly an oprofile error. Actually I
messed up with different version of binutils installation ( in /usr/bin/
and /usr/local/bin). I end up removing some of installed binaries and
libraries of binutils and reinstalled bintutils using yum. it worked and I
don''t get "segmentation fault". I had posted similar error in
oprofile forum
and apparently two copies of BFD libraries were installed.
Now question comes why i am getting write error when i start daemon using
opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1
--xen=/boot/xen-syms-3.0.4-1
--vmlinux=/boot/vmlinux-syms-2.6.16.33-xen--active-domains=0
Following is* write error:*
/usr/local/bin/opcontrol: line 1082: echo: write error: Invalid
argument
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
checking inside opcontrol script, error comes from following function:
set_param()
{
if test "$KERNEL_SUPPORT" = "yes"; then
* echo $2 >$MOUNT/$1*
else
$SYSCTL -w dev.oprofile.$1=$2
fi
}
Any clues ?
Thanks again for help.
-John
On Feb 5, 2008 10:14 AM, Fischer, Anna <anna.fischer@hp.com> wrote:
> John,
>
> I think this could be Oprofile specific, and not necessarily related to
> xenoprof. I have a couple of ideas that might help to narrow down where the
> problem may be... I haven''t come across this problem before
myself.
>
> You can run each parameter individually, and then you''ll see which
> parameter causes the "write error" message (I suspect
it''ll be the
> "--start-daemon" call).
>
> opcontrol --vmlinux=/boot/<your-kernel-name>
--xen=/boot/<xen-syms>
> opcontrol --start-daemon
> opcontrol --event=CYCLES:1000000 --event=SPU_CYCLES:60000
> opcontrol --reset
> opcontrol --start
> opcontrol --stop
> opcontrol --dump
> opreport
>
> Also, do you see any samples in /var/log/oprofile/samples? Does it make
> any difference if you remove all samples in there and restart?
>
> The difference between "opreport -l" and "opreport" is
that the first
> command is trying to give samples per-symbol rather than
> per-library/per-application. So in your case opreport seems to crash when
> it''s trying to get symbol information.
>
> Also, have you installed oprofile using the Fedora installer as a normal
> package installation? I think you additionally need to install the
> kernel-debuginfo package:
>
> yum --enablerepo=core-debuginfo --enable=updates-debuginfo install
> kernel-debuginfo
>
> Anna
>
> ________________________________
>
> From: john bryant [mailto:bryant.johan@gmail.com]
> Sent: 05 February 2008 03:02
> To: Fischer, Anna
> Cc: xen-users@lists.xensource.com
> Subject: Re: [Xen-users] Re: xenoprof error
>
>
> Anna,
>
> Thanks for helping me. I am novice in Xen.
> I have installed xen 3.0.4 and oprofile 0.9.2. Dom0 and DomU kernel
> is 2.6.16.33-xen. Let us take a simple case when there is one VM only. In
> this case, following is sequence of commands I type:
>
> > opcontrol --reset
> > opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1
> --xen=/boot/xen-syms-3.0.4-1
--vmlinux=/boot/vmlinux-syms-2.6.16.33-xen--active-domains=0
> I get following reply:
>
> /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid
> argument
> Using 2.6+ OProfile kernel interface.
> Reading module info.
> Using log file /var/lib/oprofile/oprofiled.log
> Daemon started.
>
> First question: what is this invalid argument error ? Apparently,
> opcontrol starts and log (/var/lib/oprofile/oprofiled.log) does not
indicate
> any error
>
> Now, assuming oprofile started correctly, I do some activity such
> as "ls" or run some of my C programs. Then i follow this command
sequence:
>
> > opcontrol --dump
>
> > opreport
> This gives following error (warning seems ok as i have not given
> some of symbol files):
> warning: /bridge could not be found.
> warning: /ehci_hcd could not be found.
> warning: /evdev could not be found.
> warning: /ext3 could not be found.
> warning: /jbd could not be found.
> warning: /oprofile could not be found.
> warning: /tg3 could not be found.
> warning: /uhci_hcd could not be found.
> warning: /usbcore could not be found.
> warning: /xen-unknown could not be found.
> CPU: Core 2, speed 1995.03 MHz (estimated)
> Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with
> a unit mask of 0x00 (Unhalted core cycles) count 100000
> Segmentation fault
>
> If I try only "opreport" I get following output (I am
giving
> partial output as it seems ok):
>
> CPU: Core 2, speed 1995.03 MHz (estimated)
> Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with
> a unit mask of 0x00 (Unhalted core cycles) count 100000
> CPU_CLK_UNHALT...|
> samples| %|
> ------------------
> 33557 14.8824 libfb.so
> 31884 14.1404 libmozjs.so
> 26669 11.8276 xen-syms-3.0.4-1
> 26373 11.6963 libgklayout.so
> 19726 8.7484 libc-2.5.so
> 18600 8.2490 vmlinux-syms-2.6.16.33-xen
> 8806 3.9054 libxpcom_core.so
> 8342 3.6996 libxpconnect.so
> 5327 2.3625 Xorg
> CPU_CLK_UNHALT...|
> samples| %|
>
> So, why I am getting segmentation fault with "opreport -l"
( Second
> Question ). I am not sure what logs you may need or is there a way i can
> detect the fault ? let me know any other information I can give you.
>
> Thanks again.
>
> -John
>
>
>
>
> On Feb 4, 2008 4:20 PM, Fischer, Anna <anna.fischer@hp.com>
wrote:
>
>
> John,
> Maybe you can post some more details on what exactly
you''ve
> been running, Xen version, Dom0 kernel version, how exactly did you start
> xenoprofile and when exactly do you get the first error? Also, please
> provide more detailed logs from the segmentation fault that you see. That
> would be very helpful.
>
>
> ________________________________
>
> From: xen-users-bounces@lists.xensource.com[mailto:
> xen-users-bounces@lists.xensource.com] On Behalf Of john bryant
> Sent: 04 February 2008 21:06
> To: xen-users@lists.xensource.com;
> xen-devel@lists.xensource.com
> Subject: Re: [Xen-users] Re: xenoprof error
>
>
> Is there a xenoprof developer who can help me ?
>
>
> On Feb 3, 2008 11:33 PM, john bryant <
> bryant.johan@gmail.com> wrote:
>
>
> Hi.
>
> For those who are new to xenoprof ( e.g.
> Todd), I have installed xenorpof patch from following website (please
follow
> the instructions):
> http://xenoprof.sourceforge.net/
>
> For oprofile, I have downloaded from
> http://oprofile.sourceforge.net/news/
> I have used oprofile 0.9.2
>
> -John
>
>
>
> On Feb 3, 2008 10:51 PM, Todd Deshane <
> deshantm@gmail.com> wrote:
>
>
> Hi John,
>
> I don''t think you provided
the list
> with enough information. How did you get to this point? What did you
install
> etc.? For example I don''t have a opcontrol file that I am aware
of.
>
> I don''t have much
experience with
> xenoprof either. Could you provide links or packages and a litlle more
> background into the problem?
>
> Best Regards,
> Todd
>
>
> On Feb 3, 2008 6:57 PM, john bryant
> <bryant.johan@gmail.com> wrote:
>
>
> Hi,
>
> Any help with following mail will
> be great. I am using oprofile 0.9.2. Also, when i run"opreport
-l" I get
> segmentation fault. Running "opreport" works correctly. Any help
will be
> great. I am using fedora core.
>
> -John
>
>
> On Feb 1, 2008 11:06 AM, john
> bryant <bryant.johan@gmail.com> wrote:
>
>
> Hi ,
>
> I am getting following error when i
> try to run xenoprof
>
> /usr/local/bin/opcontrol: line
> 1082: echo: write error: Invalid argument
> Using 2.6+ OProfile kernel
> interface.
> Reading module info.
> Using log file
> /var/lib/oprofile/oprofiled.log
> Daemon started.
>
> what is this write error ?
>
> Any help is really appreciated.
>
> -John
>
>
>
>
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
>
> http://lists.xensource.com/xen-users
>
>
>
>
>
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
To add to my previous mail: I have tried removing samples and restarting "opcontrol --start-daemon", I still get "write error". I have no previous oprofile installation with Fedora. Any clues ? John On Feb 5, 2008 3:34 PM, john bryant <bryant.johan@gmail.com> wrote:> Thanks Anna for reply. It was certainly an oprofile error. Actually I > messed up with different version of binutils installation ( in /usr/bin/ > and /usr/local/bin). I end up removing some of installed binaries and > libraries of binutils and reinstalled bintutils using yum. it worked and I > don''t get "segmentation fault". I had posted similar error in oprofile forum > and apparently two copies of BFD libraries were installed. > > Now question comes why i am getting write error when i start daemon using > > opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1 > --xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux-syms-2.6.16.33-xen--active-domains=0 > > Following is* write error:* > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > argument > Using 2.6+ OProfile kernel interface. > Reading module info. > Using log file /var/lib/oprofile/oprofiled.log > Daemon started. > > checking inside opcontrol script, error comes from following function: > > set_param() > { > if test "$KERNEL_SUPPORT" = "yes"; then > * echo $2 >$MOUNT/$1* > else > $SYSCTL -w dev.oprofile.$1=$2 > fi > } > > Any clues ? > Thanks again for help. > > -John > > > On Feb 5, 2008 10:14 AM, Fischer, Anna <anna.fischer@hp.com> wrote: > > > John, > > > > I think this could be Oprofile specific, and not necessarily related to > > xenoprof. I have a couple of ideas that might help to narrow down where the > > problem may be... I haven''t come across this problem before myself. > > > > You can run each parameter individually, and then you''ll see which > > parameter causes the "write error" message (I suspect it''ll be the > > "--start-daemon" call). > > > > opcontrol --vmlinux=/boot/<your-kernel-name> --xen=/boot/<xen-syms> > > opcontrol --start-daemon > > opcontrol --event=CYCLES:1000000 --event=SPU_CYCLES:60000 > > opcontrol --reset > > opcontrol --start > > opcontrol --stop > > opcontrol --dump > > opreport > > > > Also, do you see any samples in /var/log/oprofile/samples? Does it make > > any difference if you remove all samples in there and restart? > > > > The difference between "opreport -l" and "opreport" is that the first > > command is trying to give samples per-symbol rather than > > per-library/per-application. So in your case opreport seems to crash when > > it''s trying to get symbol information. > > > > Also, have you installed oprofile using the Fedora installer as a normal > > package installation? I think you additionally need to install the > > kernel-debuginfo package: > > > > yum --enablerepo=core-debuginfo --enable=updates-debuginfo install > > kernel-debuginfo > > > > Anna > > > > ________________________________ > > > > From: john bryant [mailto:bryant.johan@gmail.com] > > Sent: 05 February 2008 03:02 > > To: Fischer, Anna > > Cc: xen-users@lists.xensource.com > > Subject: Re: [Xen-users] Re: xenoprof error > > > > > > Anna, > > > > Thanks for helping me. I am novice in Xen. > > I have installed xen 3.0.4 and oprofile 0.9.2. Dom0 and DomU > > kernel is 2.6.16.33-xen. Let us take a simple case when there is one VM > > only. In this case, following is sequence of commands I type: > > > > > opcontrol --reset > > > opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1 > > --xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux-syms-2.6.16.33-xen--active-domains=0 > > I get following reply: > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > argument > > Using 2.6+ OProfile kernel interface. > > Reading module info. > > Using log file /var/lib/oprofile/oprofiled.log > > Daemon started. > > > > First question: what is this invalid argument error ? > > Apparently, opcontrol starts and log (/var/lib/oprofile/oprofiled.log) does > > not indicate any error > > > > Now, assuming oprofile started correctly, I do some activity such > > as "ls" or run some of my C programs. Then i follow this command sequence: > > > > > opcontrol --dump > > > > > opreport > > This gives following error (warning seems ok as i have not given > > some of symbol files): > > warning: /bridge could not be found. > > warning: /ehci_hcd could not be found. > > warning: /evdev could not be found. > > warning: /ext3 could not be found. > > warning: /jbd could not be found. > > warning: /oprofile could not be found. > > warning: /tg3 could not be found. > > warning: /uhci_hcd could not be found. > > warning: /usbcore could not be found. > > warning: /xen-unknown could not be found. > > CPU: Core 2, speed 1995.03 MHz (estimated) > > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) > > with a unit mask of 0x00 (Unhalted core cycles) count 100000 > > Segmentation fault > > > > If I try only "opreport" I get following output (I am giving > > partial output as it seems ok): > > > > CPU: Core 2, speed 1995.03 MHz (estimated) > > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) > > with a unit mask of 0x00 (Unhalted core cycles) count 100000 > > CPU_CLK_UNHALT...| > > samples| %| > > ------------------ > > 33557 14.8824 libfb.so > > 31884 14.1404 libmozjs.so > > 26669 11.8276 xen-syms-3.0.4-1 > > 26373 11.6963 libgklayout.so > > 19726 8.7484 libc-2.5.so > > 18600 8.2490 vmlinux-syms-2.6.16.33-xen > > 8806 3.9054 libxpcom_core.so > > 8342 3.6996 libxpconnect.so > > 5327 2.3625 Xorg > > CPU_CLK_UNHALT...| > > samples| %| > > > > So, why I am getting segmentation fault with "opreport -l" ( > > Second Question ). I am not sure what logs you may need or is there a way i > > can detect the fault ? let me know any other information I can give you. > > > > Thanks again. > > > > -John > > > > > > > > > > On Feb 4, 2008 4:20 PM, Fischer, Anna <anna.fischer@hp.com> > > wrote: > > > > > > John, > > Maybe you can post some more details on what exactly > > you''ve been running, Xen version, Dom0 kernel version, how exactly did you > > start xenoprofile and when exactly do you get the first error? Also, please > > provide more detailed logs from the segmentation fault that you see. That > > would be very helpful. > > > > > > ________________________________ > > > > From: xen-users-bounces@lists.xensource.com[mailto: > > xen-users-bounces@lists.xensource.com] On Behalf Of john bryant > > Sent: 04 February 2008 21:06 > > To: xen-users@lists.xensource.com; > > xen-devel@lists.xensource.com > > Subject: Re: [Xen-users] Re: xenoprof error > > > > > > Is there a xenoprof developer who can help me ? > > > > > > On Feb 3, 2008 11:33 PM, john bryant < > > bryant.johan@gmail.com> wrote: > > > > > > Hi. > > > > For those who are new to xenoprof ( e.g. > > Todd), I have installed xenorpof patch from following website (please follow > > the instructions): > > http://xenoprof.sourceforge.net/ > > > > For oprofile, I have downloaded from > > http://oprofile.sourceforge.net/news/ > > I have used oprofile 0.9.2 > > > > -John > > > > > > > > On Feb 3, 2008 10:51 PM, Todd Deshane < > > deshantm@gmail.com> wrote: > > > > > > Hi John, > > > > I don''t think you provided the > > list with enough information. How did you get to this point? What did you > > install etc.? For example I don''t have a opcontrol file that I am aware of. > > > > I don''t have much experience with > > xenoprof either. Could you provide links or packages and a litlle more > > background into the problem? > > > > Best Regards, > > Todd > > > > > > On Feb 3, 2008 6:57 PM, john > > bryant <bryant.johan@gmail.com> wrote: > > > > > > Hi, > > > > Any help with following mail will > > be great. I am using oprofile 0.9.2. Also, when i run"opreport -l" I get > > segmentation fault. Running "opreport" works correctly. Any help will be > > great. I am using fedora core. > > > > -John > > > > > > On Feb 1, 2008 11:06 AM, john > > bryant <bryant.johan@gmail.com> wrote: > > > > > > Hi , > > > > I am getting following error when > > i try to run xenoprof > > > > /usr/local/bin/opcontrol: line > > 1082: echo: write error: Invalid argument > > Using 2.6+ OProfile kernel > > interface. > > Reading module info. > > Using log file > > /var/lib/oprofile/oprofiled.log > > Daemon started. > > > > what is this write error ? > > > > Any help is really appreciated. > > > > -John > > > > > > > > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
If you edit /usr/bin/opcontrol and add "set -x" at the very beginning,
then you should be able to see exactly what the specific values are and what it
is trying to write when you see the error.
Just to check, but I assume that you''ve already verified that the
oprofile kernel module is loaded properly, and you''ve got things under
/dev/oprofile/*?
Also, I assume that you haven''t had any problems when applying the
xenoprof patches to oprofile before building it?
________________________________
From: john bryant [mailto:bryant.johan@gmail.com]
Sent: 05 February 2008 22:01
To: Fischer, Anna; xen-users@lists.xensource.com; xen-devel@lists.xensource.com
Subject: Re: [Xen-users] Re: xenoprof error
To add to my previous mail:
I have tried removing samples and restarting "opcontrol
--start-daemon", I still get "write error". I have no previous
oprofile installation with Fedora.
Any clues ?
John
On Feb 5, 2008 3:34 PM, john bryant
<bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote:
Thanks Anna for reply. It was certainly an oprofile error. Actually I messed up
with different version of binutils installation ( in /usr/bin/ and
/usr/local/bin). I end up removing some of installed binaries and libraries of
binutils and reinstalled bintutils using yum. it worked and I don''t get
"segmentation fault". I had posted similar error in oprofile forum and
apparently two copies of BFD libraries were installed.
Now question comes why i am getting write error when i start daemon using
opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000
:0:1:1 --xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux-syms-2.6.16.33-xen
--active-domains=0
Following is write error:
/usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
checking inside opcontrol script, error comes from following function:
set_param()
{
if test "$KERNEL_SUPPORT" = "yes"; then
echo $2 >$MOUNT/$1
else
$SYSCTL -w dev.oprofile.$1=$2
fi
}
Any clues ?
Thanks again for help.
-John
On Feb 5, 2008 10:14 AM, Fischer, Anna
<anna.fischer@hp.com<mailto:anna.fischer@hp.com>> wrote:
John,
I think this could be Oprofile specific, and not necessarily related to
xenoprof. I have a couple of ideas that might help to narrow down where the
problem may be... I haven''t come across this problem before myself.
You can run each parameter individually, and then you''ll see which
parameter causes the "write error" message (I suspect it''ll
be the "--start-daemon" call).
opcontrol --vmlinux=/boot/<your-kernel-name> --xen=/boot/<xen-syms>
opcontrol --start-daemon
opcontrol --event=CYCLES:1000000 --event=SPU_CYCLES:60000
opcontrol --reset
opcontrol --start
opcontrol --stop
opcontrol --dump
opreport
Also, do you see any samples in /var/log/oprofile/samples? Does it make any
difference if you remove all samples in there and restart?
The difference between "opreport -l" and "opreport" is that
the first command is trying to give samples per-symbol rather than
per-library/per-application. So in your case opreport seems to crash when
it''s trying to get symbol information.
Also, have you installed oprofile using the Fedora installer as a normal package
installation? I think you additionally need to install the kernel-debuginfo
package:
yum --enablerepo=core-debuginfo --enable=updates-debuginfo install
kernel-debuginfo
Anna
________________________________
From: john bryant
[mailto:bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>]
Sent: 05 February 2008 03:02
To: Fischer, Anna
Cc:
xen-users@lists.xensource.com<mailto:xen-users@lists.xensource.com>
Subject: Re: [Xen-users] Re: xenoprof error
Anna,
Thanks for helping me. I am novice in Xen.
I have installed xen 3.0.4 and oprofile 0.9.2. Dom0 and DomU kernel is
2.6.16.33-xen. Let us take a simple case when there is one VM only. In this
case, following is sequence of commands I type:
> opcontrol --reset
> opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1
--xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux-syms-2.6.16.33-xen
--active-domains=0
I get following reply:
/usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
First question: what is this invalid argument error ? Apparently,
opcontrol starts and log (/var/lib/oprofile/oprofiled.log) does not indicate any
error
Now, assuming oprofile started correctly, I do some activity such as
"ls" or run some of my C programs. Then i follow this command
sequence:
> opcontrol --dump
> opreport
This gives following error (warning seems ok as i have not given some of
symbol files):
warning: /bridge could not be found.
warning: /ehci_hcd could not be found.
warning: /evdev could not be found.
warning: /ext3 could not be found.
warning: /jbd could not be found.
warning: /oprofile could not be found.
warning: /tg3 could not be found.
warning: /uhci_hcd could not be found.
warning: /usbcore could not be found.
warning: /xen-unknown could not be found.
CPU: Core 2, speed 1995.03 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a
unit mask of 0x00 (Unhalted core cycles) count 100000
Segmentation fault
If I try only "opreport" I get following output (I am giving
partial output as it seems ok):
CPU: Core 2, speed 1995.03 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a
unit mask of 0x00 (Unhalted core cycles) count 100000
CPU_CLK_UNHALT...|
samples| %|
------------------
33557 14.8824 libfb.so
31884 14.1404 libmozjs.so
26669 11.8276 xen-syms-3.0.4-1
26373 11.6963 libgklayout.so
19726 8.7484 libc-2.5.so<http://libc-2.5.so>
18600 8.2490 vmlinux-syms-2.6.16.33-xen
8806 3.9054 libxpcom_core.so
8342 3.6996 libxpconnect.so
5327 2.3625 Xorg
CPU_CLK_UNHALT...|
samples| %|
So, why I am getting segmentation fault with "opreport -l" (
Second Question ). I am not sure what logs you may need or is there a way i can
detect the fault ? let me know any other information I can give you.
Thanks again.
-John
On Feb 4, 2008 4:20 PM, Fischer, Anna
<anna.fischer@hp.com<mailto:anna.fischer@hp.com>> wrote:
John,
Maybe you can post some more details on what exactly
you''ve been running, Xen version, Dom0 kernel version, how exactly did
you start xenoprofile and when exactly do you get the first error? Also, please
provide more detailed logs from the segmentation fault that you see. That would
be very helpful.
________________________________
From:
xen-users-bounces@lists.xensource.com<mailto:xen-users-bounces@lists.xensource.com>
[mailto:xen-users-bounces@lists.xensource.com<mailto:xen-users-bounces@lists.xensource.com>]
On Behalf Of john bryant
Sent: 04 February 2008 21:06
To:
xen-users@lists.xensource.com<mailto:xen-users@lists.xensource.com>;
xen-devel@lists.xensource.com<mailto:xen-devel@lists.xensource.com>
Subject: Re: [Xen-users] Re: xenoprof error
Is there a xenoprof developer who can help me ?
On Feb 3, 2008 11:33 PM, john bryant
<bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote:
Hi.
For those who are new to xenoprof ( e.g. Todd), I
have installed xenorpof patch from following website (please follow the
instructions):
http://xenoprof.sourceforge.net/
For oprofile, I have downloaded from
http://oprofile.sourceforge.net/news/
I have used oprofile 0.9.2
-John
On Feb 3, 2008 10:51 PM, Todd Deshane
<deshantm@gmail.com<mailto:deshantm@gmail.com>> wrote:
Hi John,
I don''t think you provided the
list with enough information. How did you get to this point? What did you
install etc.? For example I don''t have a opcontrol file that I am aware
of.
I don''t have much experience
with xenoprof either. Could you provide links or packages and a litlle more
background into the problem?
Best Regards,
Todd
On Feb 3, 2008 6:57 PM, john bryant
<bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote:
Hi,
Any help with following mail will be
great. I am using oprofile 0.9.2. Also, when i run"opreport -l" I get
segmentation fault. Running "opreport" works correctly. Any help will
be great. I am using fedora core.
-John
On Feb 1, 2008 11:06 AM, john bryant
<bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote:
Hi ,
I am getting following error when i try
to run xenoprof
/usr/local/bin/opcontrol: line 1082:
echo: write error: Invalid argument
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file
/var/lib/oprofile/oprofiled.log
Daemon started.
what is this write error ?
Any help is really appreciated.
-John
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com<mailto:Xen-users@lists.xensource.com>
http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
I have attached log file when i run opcontrol with "-x" option. I have checked /dev/oprofile -it loads properly. Also, I had no problem in applying xenoprof patches to both oprofile-0.9.2 and 0.9.3. John On Feb 5, 2008 6:15 PM, Fischer, Anna <anna.fischer@hp.com> wrote:> If you edit /usr/bin/opcontrol and add "set -x" at the very beginning, > then you should be able to see exactly what the specific values are and what > it is trying to write when you see the error. > > Just to check, but I assume that you''ve already verified that the oprofile > kernel module is loaded properly, and you''ve got things under > /dev/oprofile/*? > > Also, I assume that you haven''t had any problems when applying the > xenoprof patches to oprofile before building it? > > ------------------------------ > *From:* john bryant [mailto:bryant.johan@gmail.com] > *Sent:* 05 February 2008 22:01 > *To:* Fischer, Anna; xen-users@lists.xensource.com; > xen-devel@lists.xensource.com > > *Subject:* Re: [Xen-users] Re: xenoprof error > > To add to my previous mail: > > I have tried removing samples and restarting "opcontrol --start-daemon", I > still get "write error". I have no previous oprofile installation with > Fedora. > > Any clues ? > > John > > On Feb 5, 2008 3:34 PM, john bryant <bryant.johan@gmail.com> wrote: > > > Thanks Anna for reply. It was certainly an oprofile error. Actually I > > messed up with different version of binutils installation ( in /usr/bin/ > > and /usr/local/bin). I end up removing some of installed binaries and > > libraries of binutils and reinstalled bintutils using yum. it worked and I > > don''t get "segmentation fault". I had posted similar error in oprofile forum > > and apparently two copies of BFD libraries were installed. > > > > Now question comes why i am getting write error when i start daemon > > using > > > > opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000 :0:1:1 > > --xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux-syms-2.6.16.33-xen--active-domains=0 > > > > Following is* write error:* > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > argument > > Using 2.6+ OProfile kernel interface. > > Reading module info. > > Using log file /var/lib/oprofile/oprofiled.log > > Daemon started. > > > > checking inside opcontrol script, error comes from following function: > > > > set_param() > > { > > if test "$KERNEL_SUPPORT" = "yes"; then > > * echo $2 >$MOUNT/$1* > > else > > $SYSCTL -w dev.oprofile.$1=$2 > > fi > > } > > > > Any clues ? > > Thanks again for help. > > > > -John > > > > > > On Feb 5, 2008 10:14 AM, Fischer, Anna <anna.fischer@hp.com> wrote: > > > > > John, > > > > > > I think this could be Oprofile specific, and not necessarily related > > > to xenoprof. I have a couple of ideas that might help to narrow down where > > > the problem may be... I haven''t come across this problem before myself. > > > > > > You can run each parameter individually, and then you''ll see which > > > parameter causes the "write error" message (I suspect it''ll be the > > > "--start-daemon" call). > > > > > > opcontrol --vmlinux=/boot/<your-kernel-name> --xen=/boot/<xen-syms> > > > opcontrol --start-daemon > > > opcontrol --event=CYCLES:1000000 --event=SPU_CYCLES:60000 > > > opcontrol --reset > > > opcontrol --start > > > opcontrol --stop > > > opcontrol --dump > > > opreport > > > > > > Also, do you see any samples in /var/log/oprofile/samples? Does it > > > make any difference if you remove all samples in there and restart? > > > > > > The difference between "opreport -l" and "opreport" is that the first > > > command is trying to give samples per-symbol rather than > > > per-library/per-application. So in your case opreport seems to crash when > > > it''s trying to get symbol information. > > > > > > Also, have you installed oprofile using the Fedora installer as a > > > normal package installation? I think you additionally need to install the > > > kernel-debuginfo package: > > > > > > yum --enablerepo=core-debuginfo --enable=updates-debuginfo install > > > kernel-debuginfo > > > > > > Anna > > > > > > ________________________________ > > > > > > From: john bryant [mailto:bryant.johan@gmail.com] > > > Sent: 05 February 2008 03:02 > > > To: Fischer, Anna > > > Cc: xen-users@lists.xensource.com > > > Subject: Re: [Xen-users] Re: xenoprof error > > > > > > > > > Anna, > > > > > > Thanks for helping me. I am novice in Xen. > > > I have installed xen 3.0.4 and oprofile 0.9.2. Dom0 and DomU > > > kernel is 2.6.16.33-xen. Let us take a simple case when there is one > > > VM only. In this case, following is sequence of commands I type: > > > > > > > opcontrol --reset > > > > opcontrol --start-daemon --event=CPU_CLK_UNHALTED:10000:0:1:1 > > > --xen=/boot/xen-syms-3.0.4-1 --vmlinux=/boot/vmlinux- > > > syms-2.6.16.33-xen --active-domains=0 > > > I get following reply: > > > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > > argument > > > Using 2.6+ OProfile kernel interface. > > > Reading module info. > > > Using log file /var/lib/oprofile/oprofiled.log > > > Daemon started. > > > > > > First question: what is this invalid argument error ? > > > Apparently, opcontrol starts and log (/var/lib/oprofile/oprofiled.log) does > > > not indicate any error > > > > > > Now, assuming oprofile started correctly, I do some activity > > > such as "ls" or run some of my C programs. Then i follow this command > > > sequence: > > > > > > > opcontrol --dump > > > > > > > opreport > > > This gives following error (warning seems ok as i have not > > > given some of symbol files): > > > warning: /bridge could not be found. > > > warning: /ehci_hcd could not be found. > > > warning: /evdev could not be found. > > > warning: /ext3 could not be found. > > > warning: /jbd could not be found. > > > warning: /oprofile could not be found. > > > warning: /tg3 could not be found. > > > warning: /uhci_hcd could not be found. > > > warning: /usbcore could not be found. > > > warning: /xen-unknown could not be found. > > > CPU: Core 2, speed 1995.03 MHz (estimated) > > > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) > > > with a unit mask of 0x00 (Unhalted core cycles) count 100000 > > > Segmentation fault > > > > > > If I try only "opreport" I get following output (I am giving > > > partial output as it seems ok): > > > > > > CPU: Core 2, speed 1995.03 MHz (estimated) > > > Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) > > > with a unit mask of 0x00 (Unhalted core cycles) count 100000 > > > CPU_CLK_UNHALT...| > > > samples| %| > > > ------------------ > > > 33557 14.8824 libfb.so > > > 31884 14.1404 libmozjs.so > > > 26669 11.8276 xen-syms-3.0.4-1 > > > 26373 11.6963 libgklayout.so > > > 19726 8.7484 libc-2.5.so > > > 18600 8.2490 vmlinux-syms-2.6.16.33-xen > > > 8806 3.9054 libxpcom_core.so > > > 8342 3.6996 libxpconnect.so > > > 5327 2.3625 Xorg > > > CPU_CLK_UNHALT...| > > > samples| %| > > > > > > So, why I am getting segmentation fault with "opreport -l" ( > > > Second Question ). I am not sure what logs you may need or is there a way i > > > can detect the fault ? let me know any other information I can give you. > > > > > > Thanks again. > > > > > > -John > > > > > > > > > > > > > > > On Feb 4, 2008 4:20 PM, Fischer, Anna <anna.fischer@hp.com> > > > wrote: > > > > > > > > > John, > > > Maybe you can post some more details on what exactly > > > you''ve been running, Xen version, Dom0 kernel version, how exactly did you > > > start xenoprofile and when exactly do you get the first error? Also, please > > > provide more detailed logs from the segmentation fault that you see. That > > > would be very helpful. > > > > > > > > > ________________________________ > > > > > > From: xen-users-bounces@lists.xensource.com[mailto: > > > xen-users-bounces@lists.xensource.com] On Behalf Of john bryant > > > Sent: 04 February 2008 21:06 > > > To: xen-users@lists.xensource.com; > > > xen-devel@lists.xensource.com > > > Subject: Re: [Xen-users] Re: xenoprof error > > > > > > > > > Is there a xenoprof developer who can help me ? > > > > > > > > > On Feb 3, 2008 11:33 PM, john bryant < > > > bryant.johan@gmail.com> wrote: > > > > > > > > > Hi. > > > > > > For those who are new to xenoprof ( e.g. > > > Todd), I have installed xenorpof patch from following website (please follow > > > the instructions): > > > http://xenoprof.sourceforge.net/ > > > > > > For oprofile, I have downloaded from > > > http://oprofile.sourceforge.net/news/ > > > I have used oprofile 0.9.2 > > > > > > -John > > > > > > > > > > > > On Feb 3, 2008 10:51 PM, Todd Deshane < > > > deshantm@gmail.com> wrote: > > > > > > > > > Hi John, > > > > > > I don''t think you provided the > > > list with enough information. How did you get to this point? What did you > > > install etc.? For example I don''t have a opcontrol file that I am aware of. > > > > > > I don''t have much experience > > > with xenoprof either. Could you provide links or packages and a litlle more > > > background into the problem? > > > > > > Best Regards, > > > Todd > > > > > > > > > On Feb 3, 2008 6:57 PM, john > > > bryant <bryant.johan@gmail.com> wrote: > > > > > > > > > Hi, > > > > > > Any help with following mail > > > will be great. I am using oprofile 0.9.2. Also, when i run"opreport > > > -l" I get segmentation fault. Running "opreport" works correctly. Any help > > > will be great. I am using fedora core. > > > > > > -John > > > > > > > > > On Feb 1, 2008 11:06 AM, john > > > bryant <bryant.johan@gmail.com> wrote: > > > > > > > > > Hi , > > > > > > I am getting following error > > > when i try to run xenoprof > > > > > > /usr/local/bin/opcontrol: line > > > 1082: echo: write error: Invalid argument > > > Using 2.6+ OProfile kernel > > > interface. > > > Reading module info. > > > Using log file > > > /var/lib/oprofile/oprofiled.log > > > Daemon started. > > > > > > what is this write error ? > > > > > > Any help is really appreciated. > > > > > > -John > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Santos, Jose Renato G
2008-Feb-06 17:22 UTC
RE: [Xen-devel] Re: [Xen-users] Re: xenoprof error
John, This does not seem to be an xenoprof problem, but a general oprofile error. It seems you are not being able to write to oprofilefs for some reason. You should see several files under /dev/oprofile after you execute any opcontrol command for the first time (e.g. opcontrol --reset). Anyway, I suggest that you post your question to the oprofile mailing list (oprofile-list@lists.sourceforge.net<mailto:oprofile-list@lists.sourceforge.net>) Regards Renato ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of john bryant Sent: Monday, February 04, 2008 1:06 PM To: xen-users@lists.xensource.com; xen-devel@lists.xensource.com Subject: [Xen-devel] Re: [Xen-users] Re: xenoprof error Is there a xenoprof developer who can help me ? On Feb 3, 2008 11:33 PM, john bryant <bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote: Hi. For those who are new to xenoprof ( e.g. Todd), I have installed xenorpof patch from following website (please follow the instructions): http://xenoprof.sourceforge.net/ For oprofile, I have downloaded from http://oprofile.sourceforge.net/news/ I have used oprofile 0.9.2 -John On Feb 3, 2008 10:51 PM, Todd Deshane <deshantm@gmail.com<mailto:deshantm@gmail.com>> wrote: Hi John, I don''t think you provided the list with enough information. How did you get to this point? What did you install etc.? For example I don''t have a opcontrol file that I am aware of. I don''t have much experience with xenoprof either. Could you provide links or packages and a litlle more background into the problem? Best Regards, Todd On Feb 3, 2008 6:57 PM, john bryant <bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote: Hi, Any help with following mail will be great. I am using oprofile 0.9.2. Also, when i run"opreport -l" I get segmentation fault. Running "opreport" works correctly. Any help will be great. I am using fedora core. -John On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com<mailto:bryant.johan@gmail.com>> wrote: Hi , I am getting following error when i try to run xenoprof /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid argument Using 2.6+ OProfile kernel interface. Reading module info. Using log file /var/lib/oprofile/oprofiled.log Daemon started. what is this write error ? Any help is really appreciated. -John _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com<mailto:Xen-users@lists.xensource.com> http://lists.xensource.com/xen-users _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Renato and all, I had posted this error in oprofile list. This was an issue in oprofile 0.9.2 which was corrected in oprofile 0.9.3. I have used xenoprof patch for both 0.9.2 and 0.9.3. I still see this error in xenoprof whereas with oprofile 0.9.3 I don''t see this error- oprofile 0.9.3 works fine. I had used xenoprof some months back. That time i used RHEL 4 and I didn''t see this error previously. -John On Feb 6, 2008 12:22 PM, Santos, Jose Renato G <joserenato.santos@hp.com> wrote:> John, > > This does not seem to be an xenoprof problem, but a general oprofile > error. > It seems you are not being able to write to oprofilefs for some reason. > You should see several files under /dev/oprofile after you execute any > opcontrol command for the first time (e.g. opcontrol --reset). > Anyway, I suggest that you post your question to the oprofile mailing list > (oprofile-list@lists.sourceforge.net) > > Regards > > Renato > > > ------------------------------ > *From:* xen-devel-bounces@lists.xensource.com [mailto: > xen-devel-bounces@lists.xensource.com] *On Behalf Of *john bryant > *Sent:* Monday, February 04, 2008 1:06 PM > *To:* xen-users@lists.xensource.com; xen-devel@lists.xensource.com > *Subject:* [Xen-devel] Re: [Xen-users] Re: xenoprof error > > Is there a xenoprof developer who can help me ? > > On Feb 3, 2008 11:33 PM, john bryant <bryant.johan@gmail.com> wrote: > > > Hi. > > > > For those who are new to xenoprof ( e.g. Todd), I have installed > > xenorpof patch from following website (please follow the instructions): > > http://xenoprof.sourceforge.net/ > > > > For oprofile, I have downloaded from > > http://oprofile.sourceforge.net/news/ > > I have used oprofile 0.9.2 > > > > -John > > > > > > > > On Feb 3, 2008 10:51 PM, Todd Deshane <deshantm@gmail.com> wrote: > > > > > Hi John, > > > > > > I don''t think you provided the list with enough information. How did > > > you get to this point? What did you install etc.? For example I don''t have a > > > opcontrol file that I am aware of. > > > > > > I don''t have much experience with xenoprof either. Could you provide > > > links or packages and a litlle more background into the problem? > > > > > > Best Regards, > > > Todd > > > > > > On Feb 3, 2008 6:57 PM, john bryant <bryant.johan@gmail.com> wrote: > > > > > > > Hi, > > > > > > > > Any help with following mail will be great. I am using oprofile > > > > 0.9.2. Also, when i run"opreport -l" I get segmentation fault. > > > > Running "opreport" works correctly. Any help will be great. I am using > > > > fedora core. > > > > > > > > -John > > > > > > > > > > > > On Feb 1, 2008 11:06 AM, john bryant <bryant.johan@gmail.com> wrote: > > > > > > > > > Hi , > > > > > > > > > > I am getting following error when i try to run xenoprof > > > > > > > > > > /usr/local/bin/opcontrol: line 1082: echo: write error: Invalid > > > > > argument > > > > > Using 2.6+ OProfile kernel interface. > > > > > Reading module info. > > > > > Using log file /var/lib/oprofile/oprofiled.log > > > > > Daemon started. > > > > > > > > > > what is this write error ? > > > > > > > > > > Any help is really appreciated. > > > > > > > > > > -John > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Xen-users mailing list > > > > Xen-users@lists.xensource.com > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users