From: holmes Subject: how to debug xen Date: Tue, 1 Feb 2011 03:41:02 +0800 (CST) Message-ID: <348fd749.1c6.12ddd97b44a.Coremail.albert.holmes@163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0055781194==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0055781194== Content-Type: multipart/alternative; boundary="----=_Part_1205_505189804.1296502862922" ------=_Part_1205_505189804.1296502862922 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit 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? 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? Thanks!! John Huang ------=_Part_1205_505189804.1296502862922 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
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?
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?
 
Thanks!!
John Huang 


------=_Part_1205_505189804.1296502862922-- --===============0055781194== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0055781194==--