Commit a7cbfae0cf8c3c905236baec391f7a82540f1193
1 parent
c4218205
info blockstats: show highest_allocated if exists (Uri Lublin)
Signed-off-by: Uri Lublin <uril@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6406 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
1 deletions
block.c
... | ... | @@ -1077,6 +1077,7 @@ void bdrv_info(void) |
1077 | 1077 | void bdrv_info_stats (void) |
1078 | 1078 | { |
1079 | 1079 | BlockDriverState *bs; |
1080 | + BlockDriverInfo bdi; | |
1080 | 1081 | |
1081 | 1082 | for (bs = bdrv_first; bs != NULL; bs = bs->next) { |
1082 | 1083 | term_printf ("%s:" |
... | ... | @@ -1084,10 +1085,14 @@ void bdrv_info_stats (void) |
1084 | 1085 | " wr_bytes=%" PRIu64 |
1085 | 1086 | " rd_operations=%" PRIu64 |
1086 | 1087 | " wr_operations=%" PRIu64 |
1087 | - "\n", | |
1088 | + , | |
1088 | 1089 | bs->device_name, |
1089 | 1090 | bs->rd_bytes, bs->wr_bytes, |
1090 | 1091 | bs->rd_ops, bs->wr_ops); |
1092 | + if (bdrv_get_info(bs, &bdi) == 0) | |
1093 | + term_printf(" high=%" PRIu64, | |
1094 | + bdi.highest_alloc); | |
1095 | + term_printf("\n"); | |
1091 | 1096 | } |
1092 | 1097 | } |
1093 | 1098 | ... | ... |