qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] some virtio-scsi tracing
@ 2013-08-29 13:36 Laszlo Ersek
  2013-08-29 13:37 ` [Qemu-devel] [PATCH 1/2] qemu_hexstr(): hexdump a small buffer to a string, for in-line printing Laszlo Ersek
  2013-08-29 13:37 ` [Qemu-devel] [PATCH 2/2] add some virtio-scsi trace events Laszlo Ersek
  0 siblings, 2 replies; 11+ messages in thread
From: Laszlo Ersek @ 2013-08-29 13:36 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

Recently we had to track down a (remote) problem with virtio-scsi tape
passthrough. Paolo asked me if I could turn my ad-hoc debug printf()s
into trace events.

I tested the series in the following way:
- enabled the two "processing hungry" events in "trace-events",
- built & installed qemu,
- using libvirt, started a guest with a passthru USB flash drive,
- logged in to the guest,
- on the host, enabled all virtio_scsi_* events using "virsh
  qemu-monitor-command",
- in the guest:
  - mounted the disk,
  - listed the directory tree,
  - unmounted the disk,
- on the host, physically disconnected the flash drive.

I'm attaching the trace output (stderr backend, saved by libvirt); you
should be able to pair segments of the file with the above actions.

Laszlo Ersek (2):
  qemu_hexstr(): hexdump a small buffer to a string, for in-line
    printing
  add some virtio-scsi trace events

 include/qemu-common.h |   11 +++++++
 hw/scsi/virtio-scsi.c |   76 +++++++++++++++++++++++++++++++++++++++++++++++--
 util/hexdump.c        |   20 +++++++++++++
 trace-events          |   19 ++++++++++++
 4 files changed, 123 insertions(+), 3 deletions(-)


[-- Attachment #2: fw-ovmf.g-rhel7.e-upstream.log.xz --]
[-- Type: application/x-xz, Size: 4084 bytes --]

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

end of thread, other threads:[~2013-09-05  1:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 13:36 [Qemu-devel] [PATCH 0/2] some virtio-scsi tracing Laszlo Ersek
2013-08-29 13:37 ` [Qemu-devel] [PATCH 1/2] qemu_hexstr(): hexdump a small buffer to a string, for in-line printing Laszlo Ersek
2013-08-29 16:32   ` Markus Armbruster
2013-08-29 13:37 ` [Qemu-devel] [PATCH 2/2] add some virtio-scsi trace events Laszlo Ersek
2013-08-29 13:59   ` Paolo Bonzini
2013-08-29 14:18     ` Laszlo Ersek
2013-08-29 14:53       ` Paolo Bonzini
2013-08-29 15:35         ` Laszlo Ersek
2013-08-29 15:42           ` Paolo Bonzini
2013-09-04 14:21   ` Stefan Hajnoczi
2013-09-05  1:26     ` Laszlo Ersek

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