WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: xenoprof error

To: "Fischer, Anna" <anna.fischer@xxxxxx>
Subject: Re: [Xen-users] Re: xenoprof error
From: "john bryant" <bryant.johan@xxxxxxxxx>
Date: Mon, 4 Feb 2008 22:02:27 -0500
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 04 Feb 2008 19:03:01 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=9DX2QO7eQ3TP5jJR/yhr64HtC0NlXEQhuYr7bmsHNy8=; b=p5Atz8MCCgz8xZshtc/I+BXBR8XBc4yGqL1fXTnkUmU4QuWVubtuMCrAj23ZuVeblNzxQixDhemubWxgLTl1gvBv8QUh8W7NzfBQuDRVXZ4rsej9QFBSHBA6nJzVwil+UC/8CWRa98Tnyusz/rF/6pT5fejMrqFAk4xrShgiQcI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BosZkU1aheT0Sp0VtjVt9WuzMQ3GXY8VSpbeTHeZSv+88bKotiY1Ypzkhvpi/Juhopj+W7oCTqGHbzNUd+n3xq2Oc2zV8vo+bXXU06Qg7YzyrwEa1XejVO4qak4WWVUVnn0aa8MdpTlyjw/Bi7+YYch62Dr8fddXMUk3uP+sWYQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <38CBA1F6A350B044AF785E63AAC3C6776460C631DC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <b743f6510802010806m17932252xcb606f3cea7270aa@xxxxxxxxxxxxxx> <b743f6510802031557w78781ea7t51d9d7a889edd9a5@xxxxxxxxxxxxxx> <1e16a9ed0802031951v4744c994nbbcd13f70a46e8ef@xxxxxxxxxxxxxx> <b743f6510802032033g566c9d38v3c50cf8e05e471ae@xxxxxxxxxxxxxx> <b743f6510802041306h250212b6p7a49ca8b33ce1f72@xxxxxxxxxxxxxx> <38CBA1F6A350B044AF785E63AAC3C6776460C631DC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxx> 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@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of john bryant
Sent: 04 February 2008 21:06
To: xen-users@xxxxxxxxxxxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




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