11239ac24SKevin WolfQA output created by 227 21239ac24SKevin Wolf 31239ac24SKevin Wolf=== blockstats with -drive if=virtio === 41239ac24SKevin Wolf 51239ac24SKevin WolfTesting: -drive driver=null-co,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": { 181239ac24SKevin Wolf "flush_total_time_ns": 0, 191239ac24SKevin Wolf "wr_highest_offset": 0, 201239ac24SKevin Wolf "wr_total_time_ns": 0, 211239ac24SKevin Wolf "failed_wr_operations": 0, 221239ac24SKevin Wolf "failed_rd_operations": 0, 231239ac24SKevin Wolf "wr_merged": 0, 241239ac24SKevin Wolf "wr_bytes": 0, 251239ac24SKevin Wolf "timed_stats": [ 261239ac24SKevin Wolf ], 271239ac24SKevin Wolf "failed_flush_operations": 0, 281239ac24SKevin Wolf "account_invalid": true, 291239ac24SKevin Wolf "rd_total_time_ns": 0, 301239ac24SKevin Wolf "flush_operations": 0, 311239ac24SKevin Wolf "wr_operations": 0, 321239ac24SKevin Wolf "rd_merged": 0, 331239ac24SKevin Wolf "rd_bytes": 0, 341239ac24SKevin Wolf "invalid_flush_operations": 0, 351239ac24SKevin Wolf "account_failed": true, 361239ac24SKevin Wolf "rd_operations": 0, 371239ac24SKevin Wolf "invalid_wr_operations": 0, 381239ac24SKevin Wolf "invalid_rd_operations": 0 391239ac24SKevin Wolf }, 401239ac24SKevin Wolf "node-name": "NODE_NAME", 411239ac24SKevin Wolf "qdev": "/machine/peripheral-anon/device[0]/virtio-backend" 421239ac24SKevin Wolf } 431239ac24SKevin Wolf ] 441239ac24SKevin Wolf} 451239ac24SKevin Wolf{ 461239ac24SKevin Wolf "return": { 471239ac24SKevin Wolf } 481239ac24SKevin Wolf} 491239ac24SKevin Wolf{ 501239ac24SKevin Wolf "timestamp": { 511239ac24SKevin Wolf "seconds": TIMESTAMP, 521239ac24SKevin Wolf "microseconds": TIMESTAMP 531239ac24SKevin Wolf }, 541239ac24SKevin Wolf "event": "SHUTDOWN", 551239ac24SKevin Wolf "data": { 56*ecd7a0d5SDominik Csapak "guest": false, 57*ecd7a0d5SDominik Csapak "reason": "host-qmp" 581239ac24SKevin Wolf } 591239ac24SKevin Wolf} 601239ac24SKevin Wolf 611239ac24SKevin Wolf 621239ac24SKevin Wolf=== blockstats with -drive if=none === 631239ac24SKevin Wolf 641239ac24SKevin WolfTesting: -drive driver=null-co,if=none 651239ac24SKevin Wolf{ 661239ac24SKevin Wolf QMP_VERSION 671239ac24SKevin Wolf} 681239ac24SKevin Wolf{ 691239ac24SKevin Wolf "return": { 701239ac24SKevin Wolf } 711239ac24SKevin Wolf} 721239ac24SKevin Wolf{ 731239ac24SKevin Wolf "return": [ 741239ac24SKevin Wolf { 751239ac24SKevin Wolf "device": "none0", 761239ac24SKevin Wolf "stats": { 771239ac24SKevin Wolf "flush_total_time_ns": 0, 781239ac24SKevin Wolf "wr_highest_offset": 0, 791239ac24SKevin Wolf "wr_total_time_ns": 0, 801239ac24SKevin Wolf "failed_wr_operations": 0, 811239ac24SKevin Wolf "failed_rd_operations": 0, 821239ac24SKevin Wolf "wr_merged": 0, 831239ac24SKevin Wolf "wr_bytes": 0, 841239ac24SKevin Wolf "timed_stats": [ 851239ac24SKevin Wolf ], 861239ac24SKevin Wolf "failed_flush_operations": 0, 871239ac24SKevin Wolf "account_invalid": true, 881239ac24SKevin Wolf "rd_total_time_ns": 0, 891239ac24SKevin Wolf "flush_operations": 0, 901239ac24SKevin Wolf "wr_operations": 0, 911239ac24SKevin Wolf "rd_merged": 0, 921239ac24SKevin Wolf "rd_bytes": 0, 931239ac24SKevin Wolf "invalid_flush_operations": 0, 941239ac24SKevin Wolf "account_failed": true, 951239ac24SKevin Wolf "rd_operations": 0, 961239ac24SKevin Wolf "invalid_wr_operations": 0, 971239ac24SKevin Wolf "invalid_rd_operations": 0 981239ac24SKevin Wolf }, 991239ac24SKevin Wolf "node-name": "NODE_NAME" 1001239ac24SKevin Wolf } 1011239ac24SKevin Wolf ] 1021239ac24SKevin Wolf} 1031239ac24SKevin Wolf{ 1041239ac24SKevin Wolf "return": { 1051239ac24SKevin Wolf } 1061239ac24SKevin Wolf} 1071239ac24SKevin Wolf{ 1081239ac24SKevin Wolf "timestamp": { 1091239ac24SKevin Wolf "seconds": TIMESTAMP, 1101239ac24SKevin Wolf "microseconds": TIMESTAMP 1111239ac24SKevin Wolf }, 1121239ac24SKevin Wolf "event": "SHUTDOWN", 1131239ac24SKevin Wolf "data": { 114*ecd7a0d5SDominik Csapak "guest": false, 115*ecd7a0d5SDominik Csapak "reason": "host-qmp" 1161239ac24SKevin Wolf } 1171239ac24SKevin Wolf} 1181239ac24SKevin Wolf 1191239ac24SKevin Wolf 1201239ac24SKevin Wolf=== blockstats with -blockdev === 1211239ac24SKevin Wolf 1221239ac24SKevin WolfTesting: -blockdev driver=null-co,node-name=null 1231239ac24SKevin Wolf{ 1241239ac24SKevin Wolf QMP_VERSION 1251239ac24SKevin Wolf} 1261239ac24SKevin Wolf{ 1271239ac24SKevin Wolf "return": { 1281239ac24SKevin Wolf } 1291239ac24SKevin Wolf} 1301239ac24SKevin Wolf{ 1311239ac24SKevin Wolf "return": [ 1321239ac24SKevin Wolf ] 1331239ac24SKevin Wolf} 1341239ac24SKevin Wolf{ 1351239ac24SKevin Wolf "return": { 1361239ac24SKevin Wolf } 1371239ac24SKevin Wolf} 1381239ac24SKevin Wolf{ 1391239ac24SKevin Wolf "timestamp": { 1401239ac24SKevin Wolf "seconds": TIMESTAMP, 1411239ac24SKevin Wolf "microseconds": TIMESTAMP 1421239ac24SKevin Wolf }, 1431239ac24SKevin Wolf "event": "SHUTDOWN", 1441239ac24SKevin Wolf "data": { 145*ecd7a0d5SDominik Csapak "guest": false, 146*ecd7a0d5SDominik Csapak "reason": "host-qmp" 1471239ac24SKevin Wolf } 1481239ac24SKevin Wolf} 1491239ac24SKevin Wolf 1501239ac24SKevin Wolf 1511239ac24SKevin Wolf=== blockstats with -blockdev and -device === 1521239ac24SKevin Wolf 1531239ac24SKevin WolfTesting: -blockdev driver=null-co,node-name=null -device virtio-blk,drive=null,id=virtio0 1541239ac24SKevin Wolf{ 1551239ac24SKevin Wolf QMP_VERSION 1561239ac24SKevin Wolf} 1571239ac24SKevin Wolf{ 1581239ac24SKevin Wolf "return": { 1591239ac24SKevin Wolf } 1601239ac24SKevin Wolf} 1611239ac24SKevin Wolf{ 1621239ac24SKevin Wolf "return": [ 1631239ac24SKevin Wolf { 1641239ac24SKevin Wolf "device": "", 1651239ac24SKevin Wolf "stats": { 1661239ac24SKevin Wolf "flush_total_time_ns": 0, 1671239ac24SKevin Wolf "wr_highest_offset": 0, 1681239ac24SKevin Wolf "wr_total_time_ns": 0, 1691239ac24SKevin Wolf "failed_wr_operations": 0, 1701239ac24SKevin Wolf "failed_rd_operations": 0, 1711239ac24SKevin Wolf "wr_merged": 0, 1721239ac24SKevin Wolf "wr_bytes": 0, 1731239ac24SKevin Wolf "timed_stats": [ 1741239ac24SKevin Wolf ], 1751239ac24SKevin Wolf "failed_flush_operations": 0, 1761239ac24SKevin Wolf "account_invalid": false, 1771239ac24SKevin Wolf "rd_total_time_ns": 0, 1781239ac24SKevin Wolf "flush_operations": 0, 1791239ac24SKevin Wolf "wr_operations": 0, 1801239ac24SKevin Wolf "rd_merged": 0, 1811239ac24SKevin Wolf "rd_bytes": 0, 1821239ac24SKevin Wolf "invalid_flush_operations": 0, 1831239ac24SKevin Wolf "account_failed": false, 1841239ac24SKevin Wolf "rd_operations": 0, 1851239ac24SKevin Wolf "invalid_wr_operations": 0, 1861239ac24SKevin Wolf "invalid_rd_operations": 0 1871239ac24SKevin Wolf }, 1881239ac24SKevin Wolf "node-name": "null", 1891239ac24SKevin Wolf "qdev": "/machine/peripheral/virtio0/virtio-backend" 1901239ac24SKevin Wolf } 1911239ac24SKevin Wolf ] 1921239ac24SKevin Wolf} 1931239ac24SKevin Wolf{ 1941239ac24SKevin Wolf "return": { 1951239ac24SKevin Wolf } 1961239ac24SKevin Wolf} 1971239ac24SKevin Wolf{ 1981239ac24SKevin Wolf "timestamp": { 1991239ac24SKevin Wolf "seconds": TIMESTAMP, 2001239ac24SKevin Wolf "microseconds": TIMESTAMP 2011239ac24SKevin Wolf }, 2021239ac24SKevin Wolf "event": "SHUTDOWN", 2031239ac24SKevin Wolf "data": { 204*ecd7a0d5SDominik Csapak "guest": false, 205*ecd7a0d5SDominik Csapak "reason": "host-qmp" 2061239ac24SKevin Wolf } 2071239ac24SKevin Wolf} 2081239ac24SKevin Wolf 2091239ac24SKevin Wolf*** done 210