Revision 5138efec hw/scsi-bus.c

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

  

Also available in: Unified diff