diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-06-06 08:10:44 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-07-09 15:53:02 +0200 |
commit | 5c171afa4cff41101ac3e5b0cd703fd211aaa253 (patch) | |
tree | fb4695ff815a17cbf408b6cd104593a9ad57584d /block/raw.c | |
parent | e4780db4293ed4380ce93ad77881b46f5ae59786 (diff) | |
download | qemu-5c171afa4cff41101ac3e5b0cd703fd211aaa253.tar.gz qemu-5c171afa4cff41101ac3e5b0cd703fd211aaa253.tar.bz2 qemu-5c171afa4cff41101ac3e5b0cd703fd211aaa253.zip |
raw: hook into blkdebug
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw.c')
-rw-r--r-- | block/raw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/raw.c b/block/raw.c index 09d9b4878b..ff34ea41e7 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); } |