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-devel

Re: [Xen-devel] Tips for debugging Xend?

To: Randy Thelen <rthelen@xxxxxxxxxx>
Subject: Re: [Xen-devel] Tips for debugging Xend?
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Wed, 26 Apr 2006 01:34:02 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 25 Apr 2006 17:35:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <CA19F91D-0E46-4FC0-A47A-A34A87F83090@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CA19F91D-0E46-4FC0-A47A-A34A87F83090@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Apr 25, 2006 at 05:11:49PM -0700, Randy Thelen wrote:

> Folks --
> 
> I'm walking through Xend and am having trouble figuring out where new  
> commands that come in from xm via the UnixHttp interface are actually  
> parsed and run.  There are sort of three ways to tackle this.
> 
> First: Is there any documentation that explains the inner workings of  
> xend?

make dev-docs might help, but in your case, I doubt it.  There's basically no
documentation for the internals of Xend.

> Second: Is there an obvious way to convert SrvDaemon.start() to not  
> fork so that I can run Xend on top of pdb?

Setting XEND_DAEMONIZE = False at the top of the xend launch script should do
it.

> Third: Is there a Python debugger that allows me to connect to a  
> running application?
> 
> Any pointers to do any of the above would be welcome.

If you're using Xen 3.0.2 or unstable, you want to be looking at
XMLRPCServer.py.  The commands come in through there, and it should be fairly
obvious from there on in.

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>