mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
block: Add copy offloading trace points
A few trace points that can help reveal what is happening in a copy offloading I/O path. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
f8a30874ca
commit
ecc983a507
4 changed files with 15 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
|||
#include "qapi/qmp/qstring.h"
|
||||
#include "crypto/secret.h"
|
||||
#include "scsi/utils.h"
|
||||
#include "trace.h"
|
||||
|
||||
/* Conflict between scsi/utils.h and libiscsi! :( */
|
||||
#define SCSI_XFER_NONE ISCSI_XFER_NONE
|
||||
|
@ -2399,6 +2400,8 @@ retry:
|
|||
}
|
||||
|
||||
out_unlock:
|
||||
|
||||
trace_iscsi_xcopy(src_lun, src_offset, dst_lun, dst_offset, bytes, r);
|
||||
g_free(iscsi_task.task);
|
||||
qemu_mutex_unlock(&dst_lun->mutex);
|
||||
g_free(iscsi_task.err_str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue