How to debug Xen and Dom0 driver?
hi,
I am wondering if anybody is doing Xen or Dom0 debugging with gdb here. If yes, could you show me the procedure of doing that?
Thanks,
Neo
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Quoted 4 lines · Neo Jia
hi,
I am wondering if anybody is doing Xen or Dom0 debugging with gdb here. If yes, could you show me the procedure of doing that?
For dom0, it will be similar to debugging in Linux e.g Use kgdb, netdump, kdump etc. and analyse those dump using crash tools.
For domU use gdb built in debugger with xen.
1. cd xen-3.3.0/tool/debugger/gdb/README
This explains everything from setting gdbserver-xen to debugging with gdb.
2. enable xendump by configuring xend-config.sxp file
It is helpful for capturing vmcore dumps from xen guest.
#(enable-dump no) change to (enable-dump yes)
Restart xend
start domU's and capture the vmcore @ /var/crash/*
analyse the dump with crash
HTH
-tej
Quoted 13 lines
Thanks,
Neo--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Tej
Quoted 4 lines · Neo Jia
hi,
I am wondering if anybody is doing Xen or Dom0 debugging with gdb here. If yes, could you show me the procedure of doing that?
For dom0, it will be similar to debugging in Linux e.g Use kgdb, netdump, kdump etc. and analyse those dump using crash tools.
This is what I want to know more. How to use kgdb with dom0? I assume you can't as the TSS is in Xen not dom0, right?
Thanks,
Neo
Quoted 31 lines
For domU use gdb built in debugger with xen.
1. cd xen-3.3.0/tool/debugger/gdb/README
This explains everything from setting gdbserver-xen to debugging with gdb.
2. enable xendump by configuring xend-config.sxp file
It is helpful for capturing vmcore dumps from xen guest.
#(enable-dump no) change to (enable-dump yes)
Restart xend
start domU's and capture the vmcore @/var/crash/*
analyse the dump with crashHTH
-tejQuoted 13 lines
Thanks,
Neo--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
If you want to debug dom0, use kdb instead of gdb. Apply the kdb patch suitable to you kernel version, build it and run.
Quoted 7 lines · Neo Jia
Quoted 6 lines · Tej
Quoted 4 lines · Neo Jia
hi,
I am wondering if anybody is doing Xen or Dom0 debugging with gdb here. If yes, could you show me the procedure of doing that?
Quoted 43 lines
Quoted 2 lines
For dom0, it will be similar to debugging in Linux e.g Use kgdb, netdump, kdump etc. and analyse those dump using crash tools.
This is what I want to know more. How to use kgdb with dom0? I assume you can't as the TSS is in Xen not dom0, right?
Thanks,
NeoQuoted 31 lines
For domU use gdb built in debugger with xen.
1. cd xen-3.3.0/tool/debugger/gdb/README
This explains everything from setting gdbserver-xen to debugging with gdb.
2. enable xendump by configuring xend-config.sxp file
It is helpful for capturing vmcore dumps from xen guest.
#(enable-dump no) change to (enable-dump yes)
Restart xend
start domU's and capture the vmcore @/var/crash/*
analyse the dump with crashHTH
-tejQuoted 13 lines
Thanks,
Neo--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Quoted 2 lines · Sandesh
If you want to debug dom0, use kdb instead of gdb. Apply the kdb patch suitable to you kernel version, build it and run.
Do you have a kdb patch for 2.6.18 available? If yes, could you share with me?
Thanks,
Neo
Quoted 62 lines · Neo Jia
Quoted 7 lines · Tej
Quoted 6 lines · Neo Jia
Quoted 4 lines
hi,
I am wondering if anybody is doing Xen or Dom0 debugging with gdb here. If yes, could you show me the procedure of doing that?
Quoted 43 lines
Quoted 2 lines
For dom0, it will be similar to debugging in Linux e.g Use kgdb, netdump, kdump etc. and analyse those dump using crash tools.
This is what I want to know more. How to use kgdb with dom0? I assume you can't as the TSS is in Xen not dom0, right?
Thanks,
NeoQuoted 31 lines
For domU use gdb built in debugger with xen.
1. cd xen-3.3.0/tool/debugger/gdb/README
This explains everything from setting gdbserver-xen to debugging with gdb.
2. enable xendump by configuring xend-config.sxp file
It is helpful for capturing vmcore dumps from xen guest.
#(enable-dump no) change to (enable-dump yes)
Restart xend
start domU's and capture the vmcore @/var/crash/*
analyse the dump with crashHTH
-tejQuoted 13 lines
Thanks,
Neo--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develPlease do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Quoted 5 lines · Neo Jia
Quoted 2 lines · Sandesh
If you want to debug dom0, use kdb instead of gdb. Apply the kdb patch suitable to you kernel version, build it and run.
Do you have a kdb patch for 2.6.18 available? If yes, could you share with me?
ftp://oss.sgi.com/www/projects/kdb/download/v4.4/
refer readme, then apply patches
thanks
-tej
Quoted 74 lines
Thanks,
NeoQuoted 54 lines · Neo Jia
Quoted 7 lines · Tej
Quoted 6 lines · Neo Jia
Quoted 4 lines
hi,
I am wondering if anybody is doing Xen or Dom0 debugging with gdb here. If yes, could you show me the procedure of doing that?
Quoted 43 lines
Quoted 2 lines
For dom0, it will be similar to debugging in Linux e.g Use kgdb, netdump, kdump etc. and analyse those dump using crash tools.
This is what I want to know more. How to use kgdb with dom0? I assume you can't as the TSS is in Xen not dom0, right?
Thanks,
NeoQuoted 31 lines
For domU use gdb built in debugger with xen.
1. cd xen-3.3.0/tool/debugger/gdb/README
This explains everything from setting gdbserver-xen to debugging with gdb.
2. enable xendump by configuring xend-config.sxp file
It is helpful for capturing vmcore dumps from xen guest.
#(enable-dump no) change to (enable-dump yes)
Restart xend
start domU's and capture the vmcore @/var/crash/*
analyse the dump with crashHTH
-tejQuoted 13 lines
Thanks,
Neo--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 8 lines
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!