diff options
author | Hannes Reinecke <hare@suse.de> | 2020-11-16 19:31:14 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-25 14:14:32 +0100 |
commit | b2d50a3343d939a603df4436ccc41b4cf8223f88 (patch) | |
tree | ca934d79513fcf913517d247084ebfc0118ca31e /hw/scsi/scsi-disk.c | |
parent | c9b6609b69facad0cc5425d4fa7934c33d7f2e91 (diff) | |
download | qemu-b2d50a3343d939a603df4436ccc41b4cf8223f88.zip qemu-b2d50a3343d939a603df4436ccc41b4cf8223f88.tar.gz qemu-b2d50a3343d939a603df4436ccc41b4cf8223f88.tar.bz2 |
scsi: add tracing for SG_IO commands
Add tracepoints for SG_IO commands to allow for debugging
of SG_IO commands.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Message-Id: <20201116183114.55703-4-hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-disk.c')
-rw-r--r-- | hw/scsi/scsi-disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index c4016d1..a2716b2 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -2788,7 +2788,8 @@ static BlockAIOCB *scsi_block_do_sgio(SCSIBlockReq *req, io_header->timeout = s->qdev.io_timeout * 1000; io_header->usr_ptr = r; io_header->flags |= SG_FLAG_DIRECT_IO; - + trace_scsi_disk_aio_sgio_command(r->req.tag, req->cdb[0], lba, + nb_logical_blocks, io_header->timeout); aiocb = blk_aio_ioctl(s->qdev.conf.blk, SG_IO, io_header, cb, opaque); assert(aiocb != NULL); return aiocb; |