[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [Xen-devel] how to debug xen


  • To: holmes <albert.holmes@xxxxxxx>
  • From: Jiang Wang <jwangzju@xxxxxxxxx>
  • Date: Tue, 1 Feb 2011 11:09:03 -0500
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 01 Feb 2011 08:09:44 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ExRwFFoeH1U1U9Tf89y6GZk3+8wmGGMuMeRd4bg3F1hGj4a3UmtEbug8tM0XymSwcI GMaD8qc0sfnjGj4cgx0PIsXaVgIV74n/3VHOZwMVK9EFat4rnqY4b1g3xCvR8qp/GR8w l1JbIFhMUYjLkDaiSRqPC7OyaJ7zYPmaXaQ6w=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I think you can use xentrace or xenmon. Google them. Following is one
link about them:

http://jianggmulab.blogspot.com/2009/03/xentrace-xenmon.html

Regards,

Jiang

On Mon, Jan 31, 2011 at 3:39 PM, holmes <albert.holmes@xxxxxxx> wrote:
> Hi Pasi,
>
> Thank you! Can you tell me how to log the activities here? Give me few codes 
> or hints?
> BTW, can I use printf or what else to do the log thing?
> Thanks!
> At 2011-01-31 15:18:58ï"Pasi KÃrkkÃinen" <pasik@xxxxxx> wrote:
>>On Tue, Feb 01, 2011 at 03:41:02AM +0800, holmes wrote:
>>> Â ÂHi all,
>>> Â ÂI am new to Xen. I want to debug xen. So I have few questions here. If
>>> Â Âanybody can help me, I'd appreciate it.
>>> Â Â1: My system is ubuntu 8.04. I download the xen-3.4.2 source code from 
>>> xen
>>> Â Âwebsite. After I "make world", it will download the linux-2.6.18-xen.hg
>>> Â Â(kernel?). ÂAlso it will make many other folders (./dist). I found
>>> Â Âblkfront.c in both ./linux-2.6.18-xen.hg/drivers/xen/blkfront folder and
>>> Â Â./dist/install/lib/modules/2.6.18.8-xen/source/drivers/xen/blkfront/
>>> Â Âfolder. So, what's the difference of the two folders and what are they
>>> Â Âdoing?
>>
>>
>>dist/ is the directory where stuff lands after successful build,
>>ie. you can copy from dist/ to / to install xen.
>>
>>
>>> Â Â2: if I want to log the activities (read/write block) information in
>>> Â ÂdomU(winxp), how do I log it? For example, if domU read a block, I
>>> Â Âtherefore print a information into a log file (like "domU read"). Should 
>>> I
>>> Â Âchange something in blkfront.c file? If so, which one should I change,
>>> Â Âbecause there are two blkfront.c.
>>> Â Â3: if I want to log the information, I GUESS (not sure) I should use
>>> Â Âlog.debug (or else) to log the info. into some log files. How should I 
>>> do?
>>> Â ÂCan anyone give me suggestion?
>>>
>>
>>blkfront is the *frontend* driver for Linux, so a Linux domU running 
>>2.6.18-xen
>>would use it to access the virtual disks.
>>
>>You need to check blkback (blkbk) driver! That's the one running in dom0
>>providing virtual disks for vms.
>>
>>-- Pasi
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.