mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
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>
This commit is contained in:
parent
c45a81682d
commit
28dcee10c5
2 changed files with 3 additions and 0 deletions
2
block.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue