Received: from eggs.gnu.org ([208.118.235.92]:51671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sum5U-0007vu-Kx for qemu-devel@nongnu.org; Fri, 27 Jul 2012 11:04:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sum5P-0007U7-W1 for qemu-devel@nongnu.org; Fri, 27 Jul 2012 11:04:20 -0400 Received: from mail-gh0-f173.google.com ([209.85.160.173]:42319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sum5P-0007JU-SK for qemu-devel@nongnu.org; Fri, 27 Jul 2012 11:04:15 -0400 Received: by mail-gh0-f173.google.com with SMTP id r14so3231906ghr.4 for ; Fri, 27 Jul 2012 08:04:15 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 27 Jul 2012 17:02:49 +0200 Message-Id: <1343401379-19495-23-git-send-email-pbonzini@redhat.com> In-Reply-To: <1343401379-19495-1-git-send-email-pbonzini@redhat.com> References: <1343401379-19495-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 22/32] scsi: add tracepoint for scsi_req_cancel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c | 1 + trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index dd0cdd0..543d9d2 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -1496,6 +1496,7 @@ void scsi_req_complete(SCSIRequest *req, int status) void scsi_req_cancel(SCSIRequest *req) { + trace_scsi_req_cancel(req->dev->id, req->lun, req->tag); if (!req->enqueued) { return; } diff --git a/trace-events b/trace-events index 6fb5eb5..7aa28b1 100644 --- a/trace-events +++ b/trace-events @@ -403,6 +403,7 @@ usb_host_parse_error(int bus, int addr, const char *errmsg) "dev %d:%d, msg %s" # hw/scsi-bus.c scsi_req_alloc(int target, int lun, int tag) "target %d lun %d tag %d" +scsi_req_cancel(int target, int lun, int tag) "target %d lun %d tag %d" scsi_req_data(int target, int lun, int tag, int len) "target %d lun %d tag %d len %d" scsi_req_data_canceled(int target, int lun, int tag, int len) "target %d lun %d tag %d len %d" scsi_req_dequeue(int target, int lun, int tag) "target %d lun %d tag %d" -- 1.7.10.4