]> git.proxmox.com Git - mirror_qemu.git/commitdiff
usb: document pcap (aka usb traffic capture)
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Jul 2022 09:44:37 +0000 (11:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jul 2022 12:36:42 +0000 (14:36 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20220711094437.3995927-3-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
docs/system/devices/usb.rst

index 18e7c8b4d71652fae4f951e3637e1979fbd06a0f..f39a88f080ff839d310742cb1cd4acfc45163563 100644 (file)
@@ -382,3 +382,15 @@ What works best pretty much depends on the behavior of the specific
 usb device at hand, so it's a trial-and-error game.  If the default
 doesn't work, try another option and see whenever the situation
 improves.
+
+record usb transfers
+^^^^^^^^^^^^^^^^^^^^
+
+All usb devices have support for recording the usb traffic.  This can
+be enabled using the ``pcap=<file>`` property, for example:
+
+``-device usb-mouse,pcap=mouse.pcap``
+
+The pcap files are compatible with the linux kernels usbmon.  Many
+tools, including ``wireshark``, can decode and inspect these trace
+files.