From: Gerd Hoffmann Date: Mon, 11 Jul 2022 09:44:37 +0000 (+0200) Subject: usb: document pcap (aka usb traffic capture) X-Git-Tag: qemu-xen-4.18.0-rc5~608^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=04fcb215b8e61042ecd592f4920fe96faf3de36b;p=qemu-xen.git usb: document pcap (aka usb traffic capture) Signed-off-by: Gerd Hoffmann Message-Id: <20220711094437.3995927-3-kraxel@redhat.com> Signed-off-by: Gerd Hoffmann --- diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index 18e7c8b4d7..f39a88f080 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst @@ -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=`` 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.