mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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>
This commit is contained in:
parent
c9b6609b69
commit
b2d50a3343
3 changed files with 13 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue