 52eb76f4b1
			
		
	
	
		52eb76f4b1
		
	
	
	
	
		
			
			Taking account of the new zone append write operation for zoned devices, BLOCK_ACCT_ZONE_APPEND enum is introduced as other I/O request type (read, write, flush). Signed-off-by: Sam Li <faithilikerun@gmail.com> Message-id: 20230508051916.178322-3-faithilikerun@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
		
			
				
	
	
		
			246 lines
		
	
	
		
			6.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			246 lines
		
	
	
		
			6.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| QA output created by 227
 | |
| 
 | |
| === blockstats with -drive if=virtio ===
 | |
| 
 | |
| Testing: -drive driver=null-co,read-zeroes=on,if=virtio
 | |
| {
 | |
|     QMP_VERSION
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "return": [
 | |
|         {
 | |
|             "device": "virtio0",
 | |
|             "stats": {
 | |
|                 "unmap_operations": 0,
 | |
|                 "unmap_merged": 0,
 | |
|                 "failed_zone_append_operations": 0,
 | |
|                 "flush_total_time_ns": 0,
 | |
|                 "wr_highest_offset": 0,
 | |
|                 "wr_total_time_ns": 0,
 | |
|                 "failed_wr_operations": 0,
 | |
|                 "failed_rd_operations": 0,
 | |
|                 "wr_merged": 0,
 | |
|                 "wr_bytes": 0,
 | |
|                 "timed_stats": [
 | |
|                 ],
 | |
|                 "failed_unmap_operations": 0,
 | |
|                 "zone_append_merged": 0,
 | |
|                 "failed_flush_operations": 0,
 | |
|                 "account_invalid": true,
 | |
|                 "rd_total_time_ns": 0,
 | |
|                 "invalid_unmap_operations": 0,
 | |
|                 "flush_operations": 0,
 | |
|                 "wr_operations": 0,
 | |
|                 "unmap_bytes": 0,
 | |
|                 "rd_merged": 0,
 | |
|                 "rd_bytes": 0,
 | |
|                 "unmap_total_time_ns": 0,
 | |
|                 "invalid_flush_operations": 0,
 | |
|                 "account_failed": true,
 | |
|                 "zone_append_total_time_ns": 0,
 | |
|                 "zone_append_operations": 0,
 | |
|                 "rd_operations": 0,
 | |
|                 "zone_append_bytes": 0,
 | |
|                 "invalid_zone_append_operations": 0,
 | |
|                 "invalid_wr_operations": 0,
 | |
|                 "invalid_rd_operations": 0
 | |
|             },
 | |
|             "node-name": "NODE_NAME",
 | |
|             "qdev": "/machine/peripheral-anon/device[0]/virtio-backend"
 | |
|         }
 | |
|     ]
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "timestamp": {
 | |
|         "seconds":  TIMESTAMP,
 | |
|         "microseconds":  TIMESTAMP
 | |
|     },
 | |
|     "event": "SHUTDOWN",
 | |
|     "data": {
 | |
|         "guest": false,
 | |
|         "reason": "host-qmp-quit"
 | |
|     }
 | |
| }
 | |
| 
 | |
| 
 | |
| === blockstats with -drive if=none ===
 | |
| 
 | |
| Testing: -drive driver=null-co,if=none
 | |
| {
 | |
|     QMP_VERSION
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "return": [
 | |
|         {
 | |
|             "device": "none0",
 | |
|             "stats": {
 | |
|                 "unmap_operations": 0,
 | |
|                 "unmap_merged": 0,
 | |
|                 "failed_zone_append_operations": 0,
 | |
|                 "flush_total_time_ns": 0,
 | |
|                 "wr_highest_offset": 0,
 | |
|                 "wr_total_time_ns": 0,
 | |
|                 "failed_wr_operations": 0,
 | |
|                 "failed_rd_operations": 0,
 | |
|                 "wr_merged": 0,
 | |
|                 "wr_bytes": 0,
 | |
|                 "timed_stats": [
 | |
|                 ],
 | |
|                 "failed_unmap_operations": 0,
 | |
|                 "zone_append_merged": 0,
 | |
|                 "failed_flush_operations": 0,
 | |
|                 "account_invalid": true,
 | |
|                 "rd_total_time_ns": 0,
 | |
|                 "invalid_unmap_operations": 0,
 | |
|                 "flush_operations": 0,
 | |
|                 "wr_operations": 0,
 | |
|                 "unmap_bytes": 0,
 | |
|                 "rd_merged": 0,
 | |
|                 "rd_bytes": 0,
 | |
|                 "unmap_total_time_ns": 0,
 | |
|                 "invalid_flush_operations": 0,
 | |
|                 "account_failed": true,
 | |
|                 "zone_append_total_time_ns": 0,
 | |
|                 "zone_append_operations": 0,
 | |
|                 "rd_operations": 0,
 | |
|                 "zone_append_bytes": 0,
 | |
|                 "invalid_zone_append_operations": 0,
 | |
|                 "invalid_wr_operations": 0,
 | |
|                 "invalid_rd_operations": 0
 | |
|             },
 | |
|             "node-name": "NODE_NAME"
 | |
|         }
 | |
|     ]
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "timestamp": {
 | |
|         "seconds":  TIMESTAMP,
 | |
|         "microseconds":  TIMESTAMP
 | |
|     },
 | |
|     "event": "SHUTDOWN",
 | |
|     "data": {
 | |
|         "guest": false,
 | |
|         "reason": "host-qmp-quit"
 | |
|     }
 | |
| }
 | |
| 
 | |
| 
 | |
| === blockstats with -blockdev ===
 | |
| 
 | |
| Testing: -blockdev driver=null-co,node-name=null
 | |
| {
 | |
|     QMP_VERSION
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "return": [
 | |
|     ]
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "timestamp": {
 | |
|         "seconds":  TIMESTAMP,
 | |
|         "microseconds":  TIMESTAMP
 | |
|     },
 | |
|     "event": "SHUTDOWN",
 | |
|     "data": {
 | |
|         "guest": false,
 | |
|         "reason": "host-qmp-quit"
 | |
|     }
 | |
| }
 | |
| 
 | |
| 
 | |
| === blockstats with -blockdev and -device ===
 | |
| 
 | |
| Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device virtio-blk,drive=null,id=virtio0
 | |
| {
 | |
|     QMP_VERSION
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "return": [
 | |
|         {
 | |
|             "device": "",
 | |
|             "stats": {
 | |
|                 "unmap_operations": 0,
 | |
|                 "unmap_merged": 0,
 | |
|                 "failed_zone_append_operations": 0,
 | |
|                 "flush_total_time_ns": 0,
 | |
|                 "wr_highest_offset": 0,
 | |
|                 "wr_total_time_ns": 0,
 | |
|                 "failed_wr_operations": 0,
 | |
|                 "failed_rd_operations": 0,
 | |
|                 "wr_merged": 0,
 | |
|                 "wr_bytes": 0,
 | |
|                 "timed_stats": [
 | |
|                 ],
 | |
|                 "failed_unmap_operations": 0,
 | |
|                 "zone_append_merged": 0,
 | |
|                 "failed_flush_operations": 0,
 | |
|                 "account_invalid": true,
 | |
|                 "rd_total_time_ns": 0,
 | |
|                 "invalid_unmap_operations": 0,
 | |
|                 "flush_operations": 0,
 | |
|                 "wr_operations": 0,
 | |
|                 "unmap_bytes": 0,
 | |
|                 "rd_merged": 0,
 | |
|                 "rd_bytes": 0,
 | |
|                 "unmap_total_time_ns": 0,
 | |
|                 "invalid_flush_operations": 0,
 | |
|                 "account_failed": true,
 | |
|                 "zone_append_total_time_ns": 0,
 | |
|                 "zone_append_operations": 0,
 | |
|                 "rd_operations": 0,
 | |
|                 "zone_append_bytes": 0,
 | |
|                 "invalid_zone_append_operations": 0,
 | |
|                 "invalid_wr_operations": 0,
 | |
|                 "invalid_rd_operations": 0
 | |
|             },
 | |
|             "node-name": "null",
 | |
|             "qdev": "/machine/peripheral/virtio0/virtio-backend"
 | |
|         }
 | |
|     ]
 | |
| }
 | |
| {
 | |
|     "return": {
 | |
|     }
 | |
| }
 | |
| {
 | |
|     "timestamp": {
 | |
|         "seconds":  TIMESTAMP,
 | |
|         "microseconds":  TIMESTAMP
 | |
|     },
 | |
|     "event": "SHUTDOWN",
 | |
|     "data": {
 | |
|         "guest": false,
 | |
|         "reason": "host-qmp-quit"
 | |
|     }
 | |
| }
 | |
| 
 | |
| *** done
 |