[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/6] raw: hook into blkdebug
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 6/6] raw: hook into blkdebug |
Date: |
Wed, 6 Jun 2012 08:10:44 +0200 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
block/raw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/block/raw.c b/block/raw.c
index 09d9b48..ff34ea4 100644
--- a/block/raw.c
+++ b/block/raw.c
@@ -12,12 +12,14 @@ static int raw_open(BlockDriverState *bs, int flags)
static int coroutine_fn raw_co_readv(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
+ BLKDBG_EVENT(bs->file, BLKDBG_READ_AIO);
return bdrv_co_readv(bs->file, sector_num, nb_sectors, qiov);
}
static int coroutine_fn raw_co_writev(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
+ BLKDBG_EVENT(bs->file, BLKDBG_WRITE_AIO);
return bdrv_co_writev(bs->file, sector_num, nb_sectors, qiov);
}
--
1.7.10.1
- [Qemu-devel] [PATCH 0/6] blkdebug changes extracted from 1.2 streaming patches, Paolo Bonzini, 2012/06/06
- [Qemu-devel] [PATCH 1/6] blkdebug: remove sync i/o events, Paolo Bonzini, 2012/06/06
- [Qemu-devel] [PATCH 2/6] blkdebug: tiny cleanup, Paolo Bonzini, 2012/06/06
- [Qemu-devel] [PATCH 3/6] blkdebug: pass getlength to underlying file, Paolo Bonzini, 2012/06/06
- [Qemu-devel] [PATCH 5/6] blkdebug: optionally tie errors to a specific sector, Paolo Bonzini, 2012/06/06
- [Qemu-devel] [PATCH 6/6] raw: hook into blkdebug,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules, Paolo Bonzini, 2012/06/06