[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 17/18] tests: vmstate static checker: add substru
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH v2 17/18] tests: vmstate static checker: add substructure for usb-kbd for hid section |
Date: |
Fri, 6 Jun 2014 14:39:49 +0530 |
This shows how the script deals with substructures added to vmstate
descriptions that don't change the on-wire format.
Signed-off-by: Amit Shah <address@hidden>
---
tests/vmstate-static-checker-data/dump2.json | 115 +++++++++++++++------------
1 file changed, 64 insertions(+), 51 deletions(-)
diff --git a/tests/vmstate-static-checker-data/dump2.json
b/tests/vmstate-static-checker-data/dump2.json
index b5cb1aa..45cccaf 100644
--- a/tests/vmstate-static-checker-data/dump2.json
+++ b/tests/vmstate-static-checker-data/dump2.json
@@ -844,7 +844,7 @@
"field": "dev",
"version_id": 0,
"field_exists": false,
- "size": 4352,
+ "size": 5832,
"Description": {
"name": "USBDevice",
"version_id": 1,
@@ -896,58 +896,71 @@
}
},
{
- "field": "kbd.keycodes",
+ "field": "hid",
"version_id": 0,
"field_exists": false,
- "size": 4
- },
- {
- "field": "head",
- "version_id": 0,
- "field_exists": false,
- "size": 4
- },
- {
- "field": "n",
- "version_id": 0,
- "field_exists": false,
- "size": 4
- },
- {
- "field": "kbd.modifiers",
- "version_id": 0,
- "field_exists": false,
- "size": 2
- },
- {
- "field": "kbd.leds",
- "version_id": 0,
- "field_exists": false,
- "size": 1
- },
- {
- "field": "kbd.key",
- "version_id": 0,
- "field_exists": false,
- "size": 1
- },
- {
- "field": "kbd.keys",
- "version_id": 0,
- "field_exists": false,
- "size": 4
- },
- {
- "field": "protocol",
- "version_id": 0,
- "field_exists": false,
- "size": 4
- },
- {
- "field": "idle",
- "version_id": 0,
- "field_exists": false,
- "size": 1
+ "size": 312,
+ "Description": {
+ "name": "HIDKeyboardDevice",
+ "version_id": 1,
+ "minimum_version_id": 1,
+ "Fields": [
+ {
+ "field": "kbd.keycodes",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 4
+ },
+ {
+ "field": "head",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 4
+ },
+ {
+ "field": "n",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 4
+ },
+ {
+ "field": "kbd.modifiers",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 2
+ },
+ {
+ "field": "kbd.leds",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 1
+ },
+ {
+ "field": "kbd.key",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 1
+ },
+ {
+ "field": "kbd.keys",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 4
+ },
+ {
+ "field": "protocol",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 4
+ },
+ {
+ "field": "idle",
+ "version_id": 0,
+ "field_exists": false,
+ "size": 1
+ }
+ ]
+ }
}
]
}
--
1.9.3
- [Qemu-devel] [PATCH v2 07/18] tests: vmstate static checker: minimum_version_id check, (continued)
- [Qemu-devel] [PATCH v2 07/18] tests: vmstate static checker: minimum_version_id check, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 08/18] tests: vmstate static checker: remove a section, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 10/18] tests: vmstate static checker: remove last field in a struct, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 09/18] tests: vmstate static checker: remove a field, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 11/18] tests: vmstate static checker: change description name, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 12/18] tests: vmstate static checker: remove Fields, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 13/18] tests: vmstate static checker: remove Description, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 14/18] tests: vmstate static checker: remove Description inside Fields, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 15/18] tests: vmstate static checker: remove a subsection, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 16/18] tests: vmstate static checker: remove Subsections, Amit Shah, 2014/06/06
- [Qemu-devel] [PATCH v2 17/18] tests: vmstate static checker: add substructure for usb-kbd for hid section,
Amit Shah <=
- [Qemu-devel] [PATCH v2 18/18] tests: vmstate static checker: add size mismatch inside substructure, Amit Shah, 2014/06/06