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

Re: [Xen-devel] How to debug Xen?



On Sat, 24 Oct 2009 13:32:57 +0800
Jun Zhu <netzhu.pku@xxxxxxxxx> wrote:

> Hi, friends
>       How to debug Xen? Sometimes, I am confused with sudden hardware
> restart or halt. I can not see any output to analyze the problems.
> Can you introduce some debug methods adopted in the Xen development?

I don't know what state gdb is in xen, but I wrote up a built in
debugger in xen, called kdb. It is an assembly level debugger. 
If you are dealing with crash, system will just break into kdb. if 
hang, you can break into it via ctrl+\. If it's badly hung with
interrupts disabled, you can NMI the system, and it would break into
kdb.

See kdb/README in 
http://xenbits.xensource.com/ext/debuggers.hg

for command details, edit kdb_cmds.c and find f_{cmd}. I'll update
README soon with usage for each command.

thanks
mukesh

PS: If the community is interested, I can send patch.


_______________________________________________
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®.