How to debug Xen?
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?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
You may want to configure a serial console for your Xen linux system.
See here: http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/user.html
Signature · 11 lines
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: [email protected] MSN: [email protected] Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore
Quoted 10 lines · Jun Zhu
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?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 4 lines · On Sat, 24 Oct 2009 13:32:57 +0800 Jun Zhu <[email protected]> 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.