aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-09-22 20:14:12 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-10-03 10:55:50 +0100
commit28dcee10c54984449259a13c6f27bf98c4770f3c (patch)
tree0a08e30ebcbe704ce704a13b0e3f4800103707dc /block.c
parentc45a81682d6d15b7ec82ed90c34a537de66dea55 (diff)
trace: trace bdrv_open_common()
bdrv_open_common() is a useful point to trace since it reveals the filename and block driver for a given BlockDriverState. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block.c b/block.c
index e3fe97f275..1ae22d5d2a 100644
--- a/block.c
+++ b/block.c
@@ -475,6 +475,8 @@ static int bdrv_open_common(BlockDriverState *bs, const char *filename,
assert(drv != NULL);
+ trace_bdrv_open_common(bs, filename, flags, drv->format_name);
+
bs->file = NULL;
bs->total_sectors = 0;
bs->encrypted = 0;