blob: 9c09ee3917b99123d23ec04ddd71f589c7d3976d [file] [log] [blame]
Kevin Wolf1239ac22018-07-27 16:11:57 +02001QA output created by 227
2
3=== blockstats with -drive if=virtio ===
4
Andrey Shinkevicha6862412019-07-15 19:07:59 +03005Testing: -drive driver=null-co,read-zeroes=on,if=virtio
Kevin Wolf1239ac22018-07-27 16:11:57 +02006{
7 QMP_VERSION
8}
9{
10 "return": {
11 }
12}
13{
14 "return": [
15 {
16 "device": "virtio0",
17 "stats": {
Anton Nefedov159f85d2019-09-23 15:17:30 +030018 "unmap_operations": 0,
19 "unmap_merged": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020020 "flush_total_time_ns": 0,
21 "wr_highest_offset": 0,
22 "wr_total_time_ns": 0,
23 "failed_wr_operations": 0,
24 "failed_rd_operations": 0,
25 "wr_merged": 0,
26 "wr_bytes": 0,
27 "timed_stats": [
28 ],
Anton Nefedov159f85d2019-09-23 15:17:30 +030029 "failed_unmap_operations": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020030 "failed_flush_operations": 0,
31 "account_invalid": true,
32 "rd_total_time_ns": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +030033 "invalid_unmap_operations": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020034 "flush_operations": 0,
35 "wr_operations": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +030036 "unmap_bytes": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020037 "rd_merged": 0,
38 "rd_bytes": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +030039 "unmap_total_time_ns": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020040 "invalid_flush_operations": 0,
41 "account_failed": true,
42 "rd_operations": 0,
43 "invalid_wr_operations": 0,
44 "invalid_rd_operations": 0
45 },
46 "node-name": "NODE_NAME",
47 "qdev": "/machine/peripheral-anon/device[0]/virtio-backend"
48 }
49 ]
50}
51{
52 "return": {
53 }
54}
55{
56 "timestamp": {
57 "seconds": TIMESTAMP,
58 "microseconds": TIMESTAMP
59 },
60 "event": "SHUTDOWN",
61 "data": {
Dominik Csapakecd7a0d2018-12-05 12:01:30 +010062 "guest": false,
Dominik Csapak92548932018-12-05 12:01:31 +010063 "reason": "host-qmp-quit"
Kevin Wolf1239ac22018-07-27 16:11:57 +020064 }
65}
66
67
68=== blockstats with -drive if=none ===
69
70Testing: -drive driver=null-co,if=none
71{
72 QMP_VERSION
73}
74{
75 "return": {
76 }
77}
78{
79 "return": [
80 {
81 "device": "none0",
82 "stats": {
Anton Nefedov159f85d2019-09-23 15:17:30 +030083 "unmap_operations": 0,
84 "unmap_merged": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020085 "flush_total_time_ns": 0,
86 "wr_highest_offset": 0,
87 "wr_total_time_ns": 0,
88 "failed_wr_operations": 0,
89 "failed_rd_operations": 0,
90 "wr_merged": 0,
91 "wr_bytes": 0,
92 "timed_stats": [
93 ],
Anton Nefedov159f85d2019-09-23 15:17:30 +030094 "failed_unmap_operations": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020095 "failed_flush_operations": 0,
96 "account_invalid": true,
97 "rd_total_time_ns": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +030098 "invalid_unmap_operations": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +020099 "flush_operations": 0,
100 "wr_operations": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +0300101 "unmap_bytes": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200102 "rd_merged": 0,
103 "rd_bytes": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +0300104 "unmap_total_time_ns": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200105 "invalid_flush_operations": 0,
106 "account_failed": true,
107 "rd_operations": 0,
108 "invalid_wr_operations": 0,
109 "invalid_rd_operations": 0
110 },
111 "node-name": "NODE_NAME"
112 }
113 ]
114}
115{
116 "return": {
117 }
118}
119{
120 "timestamp": {
121 "seconds": TIMESTAMP,
122 "microseconds": TIMESTAMP
123 },
124 "event": "SHUTDOWN",
125 "data": {
Dominik Csapakecd7a0d2018-12-05 12:01:30 +0100126 "guest": false,
Dominik Csapak92548932018-12-05 12:01:31 +0100127 "reason": "host-qmp-quit"
Kevin Wolf1239ac22018-07-27 16:11:57 +0200128 }
129}
130
131
132=== blockstats with -blockdev ===
133
134Testing: -blockdev driver=null-co,node-name=null
135{
136 QMP_VERSION
137}
138{
139 "return": {
140 }
141}
142{
143 "return": [
144 ]
145}
146{
147 "return": {
148 }
149}
150{
151 "timestamp": {
152 "seconds": TIMESTAMP,
153 "microseconds": TIMESTAMP
154 },
155 "event": "SHUTDOWN",
156 "data": {
Dominik Csapakecd7a0d2018-12-05 12:01:30 +0100157 "guest": false,
Dominik Csapak92548932018-12-05 12:01:31 +0100158 "reason": "host-qmp-quit"
Kevin Wolf1239ac22018-07-27 16:11:57 +0200159 }
160}
161
162
163=== blockstats with -blockdev and -device ===
164
Andrey Shinkevicha6862412019-07-15 19:07:59 +0300165Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device virtio-blk,drive=null,id=virtio0
Kevin Wolf1239ac22018-07-27 16:11:57 +0200166{
167 QMP_VERSION
168}
169{
170 "return": {
171 }
172}
173{
174 "return": [
175 {
176 "device": "",
177 "stats": {
Anton Nefedov159f85d2019-09-23 15:17:30 +0300178 "unmap_operations": 0,
179 "unmap_merged": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200180 "flush_total_time_ns": 0,
181 "wr_highest_offset": 0,
182 "wr_total_time_ns": 0,
183 "failed_wr_operations": 0,
184 "failed_rd_operations": 0,
185 "wr_merged": 0,
186 "wr_bytes": 0,
187 "timed_stats": [
188 ],
Anton Nefedov159f85d2019-09-23 15:17:30 +0300189 "failed_unmap_operations": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200190 "failed_flush_operations": 0,
191 "account_invalid": false,
192 "rd_total_time_ns": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +0300193 "invalid_unmap_operations": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200194 "flush_operations": 0,
195 "wr_operations": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +0300196 "unmap_bytes": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200197 "rd_merged": 0,
198 "rd_bytes": 0,
Anton Nefedov159f85d2019-09-23 15:17:30 +0300199 "unmap_total_time_ns": 0,
Kevin Wolf1239ac22018-07-27 16:11:57 +0200200 "invalid_flush_operations": 0,
201 "account_failed": false,
202 "rd_operations": 0,
203 "invalid_wr_operations": 0,
204 "invalid_rd_operations": 0
205 },
206 "node-name": "null",
207 "qdev": "/machine/peripheral/virtio0/virtio-backend"
208 }
209 ]
210}
211{
212 "return": {
213 }
214}
215{
216 "timestamp": {
217 "seconds": TIMESTAMP,
218 "microseconds": TIMESTAMP
219 },
220 "event": "SHUTDOWN",
221 "data": {
Dominik Csapakecd7a0d2018-12-05 12:01:30 +0100222 "guest": false,
Dominik Csapak92548932018-12-05 12:01:31 +0100223 "reason": "host-qmp-quit"
Kevin Wolf1239ac22018-07-27 16:11:57 +0200224 }
225}
226
227*** done