qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Grand Unified Tracing
@ 2011-08-22 18:14 Blue Swirl
  2011-08-22 20:23 ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: Blue Swirl @ 2011-08-22 18:14 UTC (permalink / raw)
  To: Stefan Hajnoczi, qemu-devel, The OpenBIOS Mailinglist

OpenBIOS uses traditional DPRINTFs for debugging. I was considering
replacing those with tracepoints, which would output to serial device
or whatever DPRINTFs are using currently. This would not be extremely
useful by itself, except maybe that configuration for debugging would
be concentrated to single 'trace-events' file, but this would not be a
major improvement over current XML configuration.

But developing this further, maybe OpenBIOS could also pass the
tracepoint data back to QEMU? Then all tracepoint data would be
synchronized, coherent and all gathered to single place.

The implementation could be that fw_cfg would be used to pass
simpletrace style data. An offset should be added to event IDs and
data would then be output as usual. On OpenBIOS side, the
implementation would be pretty similar to current QEMU tracepoints but
in place of file output there would be fw_cfg output.

Syntax for trace-events file should be augmented with include
directive, so that QEMU knows also OpenBIOS tracepoints. I think the
only change to simpletrace.py would be to parse this directive.

Controlling OpenBIOS tracepoints from QEMU monitor would be cool too.

Going even further, other targets like kernels could use something
similar, probably not using fw_cfg though.

What do you think?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-23 21:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 18:14 [Qemu-devel] Grand Unified Tracing Blue Swirl
2011-08-22 20:23 ` Stefan Hajnoczi
2011-08-22 20:59   ` Blue Swirl
2011-08-23  5:35     ` Stefan Hajnoczi
2011-08-23 14:34       ` Blue Swirl
2011-08-23 14:45         ` Stefan Hajnoczi
2011-08-23 14:54           ` Blue Swirl
2011-08-23 21:25             ` Blue Swirl

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).