Revision 5138efec
b/hw/scsi-bus.c | ||
---|---|---|
4 | 4 |
#include "scsi-defs.h" |
5 | 5 |
#include "qdev.h" |
6 | 6 |
#include "blockdev.h" |
7 |
#include "trace.h" |
|
7 | 8 |
|
8 | 9 |
static char *scsibus_get_fw_dev_path(DeviceState *dev); |
9 | 10 |
|
... | ... | |
141 | 142 |
req->lun = lun; |
142 | 143 |
req->status = -1; |
143 | 144 |
req->enqueued = true; |
145 |
trace_scsi_req_alloc(req->dev->id, req->lun, req->tag); |
|
144 | 146 |
QTAILQ_INSERT_TAIL(&d->requests, req, next); |
145 | 147 |
return req; |
146 | 148 |
} |
... | ... | |
159 | 161 |
|
160 | 162 |
static void scsi_req_dequeue(SCSIRequest *req) |
161 | 163 |
{ |
164 |
trace_scsi_req_dequeue(req->dev->id, req->lun, req->tag); |
|
162 | 165 |
if (req->enqueued) { |
163 | 166 |
QTAILQ_REMOVE(&req->dev->requests, req, next); |
164 | 167 |
req->enqueued = false; |
... | ... | |
195 | 198 |
req->cmd.len = 12; |
196 | 199 |
break; |
197 | 200 |
default: |
201 |
trace_scsi_req_parse_bad(req->dev->id, req->lun, req->tag, cmd[0]); |
|
198 | 202 |
return -1; |
199 | 203 |
} |
200 | 204 |
|
... | ... | |
392 | 396 |
memcpy(req->cmd.buf, buf, req->cmd.len); |
393 | 397 |
scsi_req_xfer_mode(req); |
394 | 398 |
req->cmd.lba = scsi_req_lba(req); |
399 |
trace_scsi_req_parsed(req->dev->id, req->lun, req->tag, buf[0], |
|
400 |
req->cmd.mode, req->cmd.xfer, req->cmd.lba); |
|
395 | 401 |
return 0; |
396 | 402 |
} |
397 | 403 |
|
b/trace-events | ||
---|---|---|
205 | 205 |
disable usb_clear_device_feature(int addr, int feature, int ret) "dev %d, feature %d, ret %d" |
206 | 206 |
disable usb_set_device_feature(int addr, int feature, int ret) "dev %d, feature %d, ret %d" |
207 | 207 |
|
208 |
# hw/scsi-bus.c |
|
209 |
disable scsi_req_alloc(int target, int lun, int tag) "target %d lun %d tag %d" |
|
210 |
disable scsi_req_dequeue(int target, int lun, int tag) "target %d lun %d tag %d" |
|
211 |
disable scsi_req_parsed(int target, int lun, int tag, int cmd, int mode, int xfer, uint64_t lba) "target %d lun %d tag %d command %d dir %d length %d lba %"PRIu64"" |
|
212 |
disable scsi_req_parse_bad(int target, int lun, int tag, int cmd) "target %d lun %d tag %d command %d" |
|
213 |
|
|
208 | 214 |
# vl.c |
209 | 215 |
disable vm_state_notify(int running, int reason) "running %d reason %d" |
210 | 216 |
|
Also available in: Unified diff