* [help] problem with debuging /tools/ioemu-qemu-xen/xen-vl-extra.c
@ 2011-12-31 12:06 ¤終於aware
2012-01-01 12:04 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: ¤終於aware @ 2011-12-31 12:06 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]
Hi everyone,
I added debug info in the function do_savevm of /tools/ioemu-qemu-xen/xen-vl-extra.c as follow:
DBG("going to save...");
ret = qemu_savevm_state(f);
DBG("save finish...");
only to see "going to save..." and "save finish..." in the log file,but I couldn't get the debug output in qemu_savevm_state(f) called by "do_savevm". Why not?
best regards
bruce
[-- Attachment #1.2: Type: text/html, Size: 2234 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [help] problem with debuging /tools/ioemu-qemu-xen/xen-vl-extra.c
2011-12-31 12:06 [help] problem with debuging /tools/ioemu-qemu-xen/xen-vl-extra.c ¤終於aware
@ 2012-01-01 12:04 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2012-01-01 12:04 UTC (permalink / raw)
To: ¤?K於aware; +Cc: xen-devel, wei.liu2
On Sat, 2011-12-31 at 12:06 +0000, ¤?K於aware wrote:
> Hi everyone,
> I added debug info in the function
> do_savevm of /tools/ioemu-qemu-xen/xen-vl-extra.c as follow:
>
>
> DBG("going to
> save...");
> ret =
> qemu_savevm_state(f);
> DBG("save finish...");
>
> only to see "going to save..." and "save finish..." in the log
> file,but I couldn't get the debug output in qemu_savevm_state(f)
> called by "do_savevm". Why not?
>
What are you expecting to see? If you want to see debug output for
qemu_savevm_state(), you should add some code to do that.
I don't find any DBG() definition in ioemu directory. I guess DBG() is
your customized wrapper around printf(), so it prints whatever you tell
it to print, right?
Another suggestion for your debugging is that you can use gdb to connect
to qemu -- it is just a userspace program.
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-01 12:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-31 12:06 [help] problem with debuging /tools/ioemu-qemu-xen/xen-vl-extra.c ¤終於aware
2012-01-01 12:04 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).