From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAgjm-0001Ll-Rz for qemu-devel@nongnu.org; Mon, 03 Oct 2011 07:31:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAgjl-0005Ep-G8 for qemu-devel@nongnu.org; Mon, 03 Oct 2011 07:31:10 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:55383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAgjk-0005EK-Pb for qemu-devel@nongnu.org; Mon, 03 Oct 2011 07:31:09 -0400 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p93BV7dJ019581 for ; Mon, 3 Oct 2011 11:31:07 GMT Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p93BV7DX2162888 for ; Mon, 3 Oct 2011 12:31:07 +0100 Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p93BV75A022130 for ; Mon, 3 Oct 2011 05:31:07 -0600 From: Stefan Hajnoczi Date: Mon, 3 Oct 2011 12:30:46 +0100 Message-Id: <1317641447-8084-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1317641447-8084-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1317641447-8084-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 4/4] trace: add arguments to bdrv_co_io_em() trace event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi It is useful to know the BlockDriverState as well as the sector_num/nb_sectors of an emulated .bdrv_co_*() request. Signed-off-by: Stefan Hajnoczi --- block.c | 2 +- trace-events | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index 1ae22d5..e865fab 100644 --- a/block.c +++ b/block.c @@ -2999,7 +2999,7 @@ static int coroutine_fn bdrv_co_io_em(BlockDriverState *bs, int64_t sector_num, bdrv_co_io_em_complete, &co); } - trace_bdrv_co_io(is_write, acb); + trace_bdrv_co_io_em(bs, sector_num, nb_sectors, is_write, acb); if (!acb) { return -EIO; } diff --git a/trace-events b/trace-events index c9fd8e5..9528c04 100644 --- a/trace-events +++ b/trace-events @@ -67,7 +67,7 @@ bdrv_aio_writev(void *bs, int64_t sector_num, int nb_sectors, void *opaque) "bs bdrv_lock_medium(void *bs, bool locked) "bs %p locked %d" bdrv_co_readv(void *bs, int64_t sector_num, int nb_sector) "bs %p sector_num %"PRId64" nb_sectors %d" bdrv_co_writev(void *bs, int64_t sector_num, int nb_sector) "bs %p sector_num %"PRId64" nb_sectors %d" -bdrv_co_io(int is_write, void *acb) "is_write %d acb %p" +bdrv_co_io_em(void *bs, int64_t sector_num, int nb_sectors, int is_write, void *acb) "bs %p sector_num %"PRId64" nb_sectors %d is_write %d acb %p" # hw/virtio-blk.c virtio_blk_req_complete(void *req, int status) "req %p status %d" -- 1.7.6.3