aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/trace-events
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-11-05 14:41:07 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-11-16 09:11:21 +0100
commitd0ccb3922d952063655f653c932e737fed902b16 (patch)
tree43673c009a1fa5a3dd114749196e9c5833248c48 /hw/usb/trace-events
parentb50ea0d54bbca7d440315c3d0c0f7a4d6537b180 (diff)
usb-storage: switch trace events
Replace most DPRINTF macros with trace events. Drop some DPRINTF macros. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20201105134112.25119-2-kraxel@redhat.com
Diffstat (limited to 'hw/usb/trace-events')
-rw-r--r--hw/usb/trace-events12
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/usb/trace-events b/hw/usb/trace-events
index a3292d4624..38e05fc7f4 100644
--- a/hw/usb/trace-events
+++ b/hw/usb/trace-events
@@ -252,6 +252,18 @@ usb_hub_attach(int addr, int nr) "dev %d, port %d"
usb_hub_detach(int addr, int nr) "dev %d, port %d"
usb_hub_status_report(int addr, int status) "dev %d, status 0x%x"
+# dev-storage.c
+usb_msd_reset(void) ""
+usb_msd_maxlun(unsigned maxlun) "%d"
+usb_msd_send_status(unsigned status, unsigned tag, size_t size) "status %d, tag 0x%x, len %zd"
+usb_msd_data_in(unsigned packet, unsigned remaining, unsigned total) "%d/%d (scsi %d)"
+usb_msd_data_out(unsigned packet, unsigned remaining) "%d/%d"
+usb_msd_packet_async(void) ""
+usb_msd_packet_complete(void) ""
+usb_msd_cmd_submit(unsigned lun, unsigned tag, unsigned flags, unsigned len, unsigned data_len) "lun %u, tag 0x%x, flags 0x%08x, len %d, data-len %d"
+usb_msd_cmd_complete(unsigned status, unsigned tag) "status %d, tag 0x%x"
+usb_msd_cmd_cancel(unsigned tag) "tag 0x%x"
+
# dev-uas.c
usb_uas_reset(int addr) "dev %d"
usb_uas_command(int addr, uint16_t tag, int lun, uint32_t lun64_1, uint32_t lun64_2) "dev %d, tag 0x%x, lun %d, lun64 0x%08x-0x%08x"