qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] exec: Rename and fix trace events for tracing I/O port access.
@ 2016-03-29 15:02 Richard W.M. Jones
  2016-03-29 15:02 ` Richard W.M. Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2016-03-29 15:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, crosthwaite.peter, stefanha, rth

Back in the day you used to be able to set DEBUG_IOPORT in ioport.c
and get qemu to dump what (x86) I/O ports were being accessed by the
guest.  This was rather useful for finding out what closed source
device drivers were up to.

Now you're supposed to use cpu_in/cpu_out tracepoints instead.
However for the majority of guests these tracepoints will never be
called.

So this patch tries to rationalize all of that.  It:

 - replaces cpu_in/cpu_out with ioport_in/ioport_out tracepoints

 - moves them down in the stack, so they actually get called

 - fixes various details like address size

It turns out this is still not particularly useful for debugging
because (a) it creates massive amounts of log messages and (b) there's
no way to select a range of addresses or a device of interest.  For
example, if you have a serial port, everything else gets swamped by
I/O access to the serial port.  Maybe using a different tracing
backend (eg. stap) would help?

Anyway, it still seems to me to be an improvement over the current
situation.

Rich.

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

end of thread, other threads:[~2016-03-31 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 15:02 [Qemu-devel] [PATCH] exec: Rename and fix trace events for tracing I/O port access Richard W.M. Jones
2016-03-29 15:02 ` Richard W.M. Jones
2016-03-29 15:09 ` Daniel P. Berrange
2016-03-30 13:30 ` Paolo Bonzini
2016-03-31 10:08 ` Stefan Hajnoczi

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