11239ac24SKevin WolfQA output created by 227 21239ac24SKevin Wolf 31239ac24SKevin Wolf=== blockstats with -drive if=virtio === 41239ac24SKevin Wolf 5a6862418SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,if=virtio 61239ac24SKevin Wolf{ 71239ac24SKevin Wolf QMP_VERSION 81239ac24SKevin Wolf} 91239ac24SKevin Wolf{ 101239ac24SKevin Wolf "return": { 111239ac24SKevin Wolf } 121239ac24SKevin Wolf} 131239ac24SKevin Wolf{ 141239ac24SKevin Wolf "return": [ 151239ac24SKevin Wolf { 161239ac24SKevin Wolf "device": "virtio0", 171239ac24SKevin Wolf "stats": { 18159f85ddSAnton Nefedov "unmap_operations": 0, 19159f85ddSAnton Nefedov "unmap_merged": 0, 201239ac24SKevin Wolf "flush_total_time_ns": 0, 211239ac24SKevin Wolf "wr_highest_offset": 0, 221239ac24SKevin Wolf "wr_total_time_ns": 0, 231239ac24SKevin Wolf "failed_wr_operations": 0, 241239ac24SKevin Wolf "failed_rd_operations": 0, 251239ac24SKevin Wolf "wr_merged": 0, 261239ac24SKevin Wolf "wr_bytes": 0, 271239ac24SKevin Wolf "timed_stats": [ 281239ac24SKevin Wolf ], 29159f85ddSAnton Nefedov "failed_unmap_operations": 0, 301239ac24SKevin Wolf "failed_flush_operations": 0, 311239ac24SKevin Wolf "account_invalid": true, 321239ac24SKevin Wolf "rd_total_time_ns": 0, 33159f85ddSAnton Nefedov "invalid_unmap_operations": 0, 341239ac24SKevin Wolf "flush_operations": 0, 351239ac24SKevin Wolf "wr_operations": 0, 36159f85ddSAnton Nefedov "unmap_bytes": 0, 371239ac24SKevin Wolf "rd_merged": 0, 381239ac24SKevin Wolf "rd_bytes": 0, 39159f85ddSAnton Nefedov "unmap_total_time_ns": 0, 401239ac24SKevin Wolf "invalid_flush_operations": 0, 411239ac24SKevin Wolf "account_failed": true, 421239ac24SKevin Wolf "rd_operations": 0, 431239ac24SKevin Wolf "invalid_wr_operations": 0, 441239ac24SKevin Wolf "invalid_rd_operations": 0 451239ac24SKevin Wolf }, 461239ac24SKevin Wolf "node-name": "NODE_NAME", 471239ac24SKevin Wolf "qdev": "/machine/peripheral-anon/device[0]/virtio-backend" 481239ac24SKevin Wolf } 491239ac24SKevin Wolf ] 501239ac24SKevin Wolf} 511239ac24SKevin Wolf{ 521239ac24SKevin Wolf "return": { 531239ac24SKevin Wolf } 541239ac24SKevin Wolf} 551239ac24SKevin Wolf{ 561239ac24SKevin Wolf "timestamp": { 571239ac24SKevin Wolf "seconds": TIMESTAMP, 581239ac24SKevin Wolf "microseconds": TIMESTAMP 591239ac24SKevin Wolf }, 601239ac24SKevin Wolf "event": "SHUTDOWN", 611239ac24SKevin Wolf "data": { 62ecd7a0d5SDominik Csapak "guest": false, 6392548938SDominik Csapak "reason": "host-qmp-quit" 641239ac24SKevin Wolf } 651239ac24SKevin Wolf} 661239ac24SKevin Wolf 671239ac24SKevin Wolf 681239ac24SKevin Wolf=== blockstats with -drive if=none === 691239ac24SKevin Wolf 701239ac24SKevin WolfTesting: -drive driver=null-co,if=none 711239ac24SKevin Wolf{ 721239ac24SKevin Wolf QMP_VERSION 731239ac24SKevin Wolf} 741239ac24SKevin Wolf{ 751239ac24SKevin Wolf "return": { 761239ac24SKevin Wolf } 771239ac24SKevin Wolf} 781239ac24SKevin Wolf{ 791239ac24SKevin Wolf "return": [ 801239ac24SKevin Wolf { 811239ac24SKevin Wolf "device": "none0", 821239ac24SKevin Wolf "stats": { 83159f85ddSAnton Nefedov "unmap_operations": 0, 84159f85ddSAnton Nefedov "unmap_merged": 0, 851239ac24SKevin Wolf "flush_total_time_ns": 0, 861239ac24SKevin Wolf "wr_highest_offset": 0, 871239ac24SKevin Wolf "wr_total_time_ns": 0, 881239ac24SKevin Wolf "failed_wr_operations": 0, 891239ac24SKevin Wolf "failed_rd_operations": 0, 901239ac24SKevin Wolf "wr_merged": 0, 911239ac24SKevin Wolf "wr_bytes": 0, 921239ac24SKevin Wolf "timed_stats": [ 931239ac24SKevin Wolf ], 94159f85ddSAnton Nefedov "failed_unmap_operations": 0, 951239ac24SKevin Wolf "failed_flush_operations": 0, 961239ac24SKevin Wolf "account_invalid": true, 971239ac24SKevin Wolf "rd_total_time_ns": 0, 98159f85ddSAnton Nefedov "invalid_unmap_operations": 0, 991239ac24SKevin Wolf "flush_operations": 0, 1001239ac24SKevin Wolf "wr_operations": 0, 101159f85ddSAnton Nefedov "unmap_bytes": 0, 1021239ac24SKevin Wolf "rd_merged": 0, 1031239ac24SKevin Wolf "rd_bytes": 0, 104159f85ddSAnton Nefedov "unmap_total_time_ns": 0, 1051239ac24SKevin Wolf "invalid_flush_operations": 0, 1061239ac24SKevin Wolf "account_failed": true, 1071239ac24SKevin Wolf "rd_operations": 0, 1081239ac24SKevin Wolf "invalid_wr_operations": 0, 1091239ac24SKevin Wolf "invalid_rd_operations": 0 1101239ac24SKevin Wolf }, 1111239ac24SKevin Wolf "node-name": "NODE_NAME" 1121239ac24SKevin Wolf } 1131239ac24SKevin Wolf ] 1141239ac24SKevin Wolf} 1151239ac24SKevin Wolf{ 1161239ac24SKevin Wolf "return": { 1171239ac24SKevin Wolf } 1181239ac24SKevin Wolf} 1191239ac24SKevin Wolf{ 1201239ac24SKevin Wolf "timestamp": { 1211239ac24SKevin Wolf "seconds": TIMESTAMP, 1221239ac24SKevin Wolf "microseconds": TIMESTAMP 1231239ac24SKevin Wolf }, 1241239ac24SKevin Wolf "event": "SHUTDOWN", 1251239ac24SKevin Wolf "data": { 126ecd7a0d5SDominik Csapak "guest": false, 12792548938SDominik Csapak "reason": "host-qmp-quit" 1281239ac24SKevin Wolf } 1291239ac24SKevin Wolf} 1301239ac24SKevin Wolf 1311239ac24SKevin Wolf 1321239ac24SKevin Wolf=== blockstats with -blockdev === 1331239ac24SKevin Wolf 1341239ac24SKevin WolfTesting: -blockdev driver=null-co,node-name=null 1351239ac24SKevin Wolf{ 1361239ac24SKevin Wolf QMP_VERSION 1371239ac24SKevin Wolf} 1381239ac24SKevin Wolf{ 1391239ac24SKevin Wolf "return": { 1401239ac24SKevin Wolf } 1411239ac24SKevin Wolf} 1421239ac24SKevin Wolf{ 1431239ac24SKevin Wolf "return": [ 1441239ac24SKevin Wolf ] 1451239ac24SKevin Wolf} 1461239ac24SKevin Wolf{ 1471239ac24SKevin Wolf "return": { 1481239ac24SKevin Wolf } 1491239ac24SKevin Wolf} 1501239ac24SKevin Wolf{ 1511239ac24SKevin Wolf "timestamp": { 1521239ac24SKevin Wolf "seconds": TIMESTAMP, 1531239ac24SKevin Wolf "microseconds": TIMESTAMP 1541239ac24SKevin Wolf }, 1551239ac24SKevin Wolf "event": "SHUTDOWN", 1561239ac24SKevin Wolf "data": { 157ecd7a0d5SDominik Csapak "guest": false, 15892548938SDominik Csapak "reason": "host-qmp-quit" 1591239ac24SKevin Wolf } 1601239ac24SKevin Wolf} 1611239ac24SKevin Wolf 1621239ac24SKevin Wolf 1631239ac24SKevin Wolf=== blockstats with -blockdev and -device === 1641239ac24SKevin Wolf 165a6862418SAndrey ShinkevichTesting: -blockdev driver=null-co,read-zeroes=on,node-name=null -device virtio-blk,drive=null,id=virtio0 1661239ac24SKevin Wolf{ 1671239ac24SKevin Wolf QMP_VERSION 1681239ac24SKevin Wolf} 1691239ac24SKevin Wolf{ 1701239ac24SKevin Wolf "return": { 1711239ac24SKevin Wolf } 1721239ac24SKevin Wolf} 1731239ac24SKevin Wolf{ 1741239ac24SKevin Wolf "return": [ 1751239ac24SKevin Wolf { 1761239ac24SKevin Wolf "device": "", 1771239ac24SKevin Wolf "stats": { 178159f85ddSAnton Nefedov "unmap_operations": 0, 179159f85ddSAnton Nefedov "unmap_merged": 0, 1801239ac24SKevin Wolf "flush_total_time_ns": 0, 1811239ac24SKevin Wolf "wr_highest_offset": 0, 1821239ac24SKevin Wolf "wr_total_time_ns": 0, 1831239ac24SKevin Wolf "failed_wr_operations": 0, 1841239ac24SKevin Wolf "failed_rd_operations": 0, 1851239ac24SKevin Wolf "wr_merged": 0, 1861239ac24SKevin Wolf "wr_bytes": 0, 1871239ac24SKevin Wolf "timed_stats": [ 1881239ac24SKevin Wolf ], 189159f85ddSAnton Nefedov "failed_unmap_operations": 0, 1901239ac24SKevin Wolf "failed_flush_operations": 0, 191*62a6c300SDenis V. Lunev "account_invalid": true, 1921239ac24SKevin Wolf "rd_total_time_ns": 0, 193159f85ddSAnton Nefedov "invalid_unmap_operations": 0, 1941239ac24SKevin Wolf "flush_operations": 0, 1951239ac24SKevin Wolf "wr_operations": 0, 196159f85ddSAnton Nefedov "unmap_bytes": 0, 1971239ac24SKevin Wolf "rd_merged": 0, 1981239ac24SKevin Wolf "rd_bytes": 0, 199159f85ddSAnton Nefedov "unmap_total_time_ns": 0, 2001239ac24SKevin Wolf "invalid_flush_operations": 0, 201*62a6c300SDenis V. Lunev "account_failed": true, 2021239ac24SKevin Wolf "rd_operations": 0, 2031239ac24SKevin Wolf "invalid_wr_operations": 0, 2041239ac24SKevin Wolf "invalid_rd_operations": 0 2051239ac24SKevin Wolf }, 2061239ac24SKevin Wolf "node-name": "null", 2071239ac24SKevin Wolf "qdev": "/machine/peripheral/virtio0/virtio-backend" 2081239ac24SKevin Wolf } 2091239ac24SKevin Wolf ] 2101239ac24SKevin Wolf} 2111239ac24SKevin Wolf{ 2121239ac24SKevin Wolf "return": { 2131239ac24SKevin Wolf } 2141239ac24SKevin Wolf} 2151239ac24SKevin Wolf{ 2161239ac24SKevin Wolf "timestamp": { 2171239ac24SKevin Wolf "seconds": TIMESTAMP, 2181239ac24SKevin Wolf "microseconds": TIMESTAMP 2191239ac24SKevin Wolf }, 2201239ac24SKevin Wolf "event": "SHUTDOWN", 2211239ac24SKevin Wolf "data": { 222ecd7a0d5SDominik Csapak "guest": false, 22392548938SDominik Csapak "reason": "host-qmp-quit" 2241239ac24SKevin Wolf } 2251239ac24SKevin Wolf} 2261239ac24SKevin Wolf 2271239ac24SKevin Wolf*** done 228