OSDN Git Service

usb: add pcap support.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jan 2021 19:44:51 +0000 (20:44 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 22 Jan 2021 13:51:35 +0000 (14:51 +0100)
commit0f6dba145a4be998e0e5e4ccd94d9df8609eb327
treee9b82396f97243e698446634dbc65ac83089da48
parentd755cb9696e8aa16e850ac5f0b908015520cd395
usb: add pcap support.

Log all traffic of a specific usb device to a pcap file for later
inspection.  File format is compatible with linux usb monitor.

Usage:
  qemu -device usb-${somedevice},pcap=file.pcap
  wireshark file.pcap

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210119194452.2148048-1-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/bus.c
hw/usb/core.c
hw/usb/meson.build
hw/usb/pcap.c [new file with mode: 0644]
include/hw/usb.h