Add randomly generated CPER examples for Unit Tests

These examples of CPER blobs and their outputs will be used to validate
CPER binaries against their JSON output.

Unit tests to be overhauled to use valijson in a subsequent patch.

Change-Id: I51cc00df22b043fcd71a8cc3ae79bfebb53e66d9
Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>
diff --git a/examples/ia32x64.json b/examples/ia32x64.json
new file mode 100644
index 0000000..ebc1393
--- /dev/null
+++ b/examples/ia32x64.json
@@ -0,0 +1,275 @@
+{
+    "header": {
+        "creatorID": "00000000-0000-0000-0000-000000000000",
+        "flags": {
+            "name": "HW_ERROR_FLAGS_SIMULATED",
+            "value": 4
+        },
+        "notificationType": {
+            "guid": "00000000-0000-0000-0000-000000000000",
+            "type": "Unknown"
+        },
+        "persistenceInfo": 0,
+        "platformID": "00000000-0000-0000-0000-000000000000",
+        "recordID": 786448348,
+        "recordLength": 1104,
+        "revision": {
+            "major": 0,
+            "minor": 0
+        },
+        "sectionCount": 1,
+        "severity": {
+            "code": 1,
+            "name": "Fatal"
+        },
+        "timestamp": "2619-06-03T08:00:12+00:00",
+        "timestampIsPrecise": false
+    },
+    "sectionDescriptors": [
+        {
+            "flags": {
+                "containmentWarning": true,
+                "errorThresholdExceeded": true,
+                "latentError": false,
+                "overflow": true,
+                "primary": false,
+                "propagated": false,
+                "reset": false,
+                "resourceNotAccessible": true
+            },
+            "fruID": "f6b8bec3-041f-e303-5510-75ef5b8618ca",
+            "fruText": "e>nC\u001dv]:\u0015v\u000bvf\u000b1\\d\u0004\n",
+            "revision": {
+                "major": 80,
+                "minor": 195
+            },
+            "sectionLength": 904,
+            "sectionOffset": 200,
+            "sectionType": {
+                "data": "dc3ea0b0-a144-4797-b95b-53fa242b6e1d",
+                "type": "IA32/X64"
+            },
+            "severity": {
+                "code": 0,
+                "name": "Recoverable"
+            }
+        }
+    ],
+    "sections": [
+        {
+            "Ia32x64Processor": {
+                "cpuidInfo": {
+                    "eax": 4231444471107743989,
+                    "ebx": 10167219783498343976,
+                    "ecx": 1714069713835722061,
+                    "edx": 14839358401423126020
+                },
+                "processorContextInfo": [
+                    {
+                        "mmRegisterAddress": 6666866091276449041,
+                        "msrAddress": 2939603056,
+                        "registerArray": {
+                            "cr0": 7791031151369926778,
+                            "cr1": 10732389205399861516,
+                            "cr2": 2836532369435396567,
+                            "cr3": 4870874757794637042,
+                            "cr4": 6486333890149941258,
+                            "cr8": 1027645587920329871,
+                            "cs": 54915,
+                            "ds": 54057,
+                            "eip": 10740702556876934910,
+                            "es": 27877,
+                            "fs": 48862,
+                            "gdtr_0": 12702330997818022903,
+                            "gdtr_1": 16784718855480282082,
+                            "gs": 44121,
+                            "idtr_0": 10157170755079562829,
+                            "idtr_1": 15557259267923440288,
+                            "ldtr": 18135,
+                            "r10": 4468763883724922505,
+                            "r11": 2467901310026306489,
+                            "r12": 1309530785698021588,
+                            "r13": 6290641158500092211,
+                            "r14": 14341921984101339319,
+                            "r15": 8276916407946698385,
+                            "r8": 8388605095910118647,
+                            "r9": 6845265527609086147,
+                            "rax": 10422244326495467491,
+                            "rbp": 11725461212100511140,
+                            "rbx": 18412280258920628917,
+                            "rcx": 10616554985453631797,
+                            "rdi": 4172560882286818449,
+                            "rdx": 5803249228583204553,
+                            "rflags": 813779868244819062,
+                            "rsi": 10704721925255176447,
+                            "rsp": 14116911004563438379,
+                            "ss": 21817,
+                            "tr": 38647
+                        },
+                        "registerArraySize": 244,
+                        "registerContextType": {
+                            "name": "64-bit Mode Execution Context",
+                            "value": 3
+                        }
+                    },
+                    {
+                        "mmRegisterAddress": 2600094515342054416,
+                        "msrAddress": 2168924306,
+                        "registerArray": {
+                            "data": "8LYWKo32pnPNfrrEFL4CWqVMVTh0nLmFMCEWX4Urg3XhmZ9vj0XiXMOcINdbIjIAb4c44yPyaFMTfrKYqjUNiw=="
+                        },
+                        "registerArraySize": 64,
+                        "registerContextType": {
+                            "name": "FXSave Context",
+                            "value": 4
+                        }
+                    },
+                    {
+                        "mmRegisterAddress": 956287962150851724,
+                        "msrAddress": 3648632249,
+                        "registerArray": {
+                            "data": "Tmj/trsSNW2q36K3anBjZc1VQoYKu1+WkFtVZcWachM="
+                        },
+                        "registerArraySize": 32,
+                        "registerContextType": {
+                            "name": "64-bit Mode Debug Registers",
+                            "value": 6
+                        }
+                    },
+                    {
+                        "mmRegisterAddress": 11460725686151997134,
+                        "msrAddress": 3727633663,
+                        "registerArray": {
+                            "cr0": 1947282579428145807,
+                            "cr1": 7466137369906051102,
+                            "cr2": 12011769093482747751,
+                            "cr3": 18020662887638316710,
+                            "cr4": 8540893454640756028,
+                            "cr8": 9086721535022402385,
+                            "cs": 23129,
+                            "ds": 14968,
+                            "eip": 16465782059164780109,
+                            "es": 44548,
+                            "fs": 64491,
+                            "gdtr_0": 3430518648344946844,
+                            "gdtr_1": 15582867698774793180,
+                            "gs": 27122,
+                            "idtr_0": 4502416471326233772,
+                            "idtr_1": 9542015900777013974,
+                            "ldtr": 24628,
+                            "r10": 8854643612808807329,
+                            "r11": 7588777686466853387,
+                            "r12": 14608954679185970332,
+                            "r13": 2267377137222137318,
+                            "r14": 12378060701444513242,
+                            "r15": 7543887594505112366,
+                            "r8": 12521358763183299408,
+                            "r9": 3702179196210542825,
+                            "rax": 5565112076041032687,
+                            "rbp": 3449176849503214038,
+                            "rbx": 9525718021383102612,
+                            "rcx": 16991298666059395312,
+                            "rdi": 3733736168285740089,
+                            "rdx": 12900339870520186398,
+                            "rflags": 4346608121544333830,
+                            "rsi": 9514304947028406473,
+                            "rsp": 539762622390077190,
+                            "ss": 13768,
+                            "tr": 48505
+                        },
+                        "registerArraySize": 244,
+                        "registerContextType": {
+                            "name": "64-bit Mode Execution Context",
+                            "value": 3
+                        }
+                    }
+                ],
+                "processorContextInfoNum": 4,
+                "processorErrorInfo": [
+                    {
+                        "checkInfo": {
+                            "level": 7,
+                            "operation": {
+                                "name": "Eviction",
+                                "value": 7
+                            },
+                            "overflow": true,
+                            "preciseIP": true,
+                            "processorContextCorrupt": true,
+                            "restartableIP": true,
+                            "transactionType": {
+                                "name": "Unknown (Reserved)",
+                                "value": 3
+                            },
+                            "uncorrected": true
+                        },
+                        "instructionPointer": 745435648286231437,
+                        "requestorID": 16343007456147047644,
+                        "type": {
+                            "guid": "a55701f5-e3ef-43de-ac72-249b573fad2c",
+                            "name": "Cache Check Error"
+                        }
+                    },
+                    {
+                        "checkInfo": {
+                            "addressSpace": {
+                                "name": "Other Transaction",
+                                "value": 3
+                            },
+                            "level": 7,
+                            "operation": {
+                                "name": "Eviction",
+                                "value": 7
+                            },
+                            "overflow": true,
+                            "participationType": {
+                                "name": "Generic",
+                                "value": 3
+                            },
+                            "preciseIP": true,
+                            "processorContextCorrupt": true,
+                            "restartableIP": true,
+                            "timedOut": true,
+                            "transactionType": {
+                                "name": "Unknown (Reserved)",
+                                "value": 3
+                            },
+                            "uncorrected": true
+                        },
+                        "instructionPointer": 9646768970891130615,
+                        "requestorID": 405788493636504313,
+                        "type": {
+                            "guid": "1cf3f8b3-c5b1-49a2-aa59-5eef92ffa63c",
+                            "name": "Bus Check Error"
+                        }
+                    },
+                    {
+                        "checkInfo": {
+                            "level": 7,
+                            "operation": {
+                                "name": "Eviction",
+                                "value": 7
+                            },
+                            "overflow": true,
+                            "preciseIP": true,
+                            "processorContextCorrupt": true,
+                            "restartableIP": true,
+                            "transactionType": {
+                                "name": "Unknown (Reserved)",
+                                "value": 3
+                            },
+                            "uncorrected": true
+                        },
+                        "instructionPointer": 10744557499837433896,
+                        "requestorID": 3323359649482135700,
+                        "type": {
+                            "guid": "fc06b535-5e1f-4562-9f25-0a3b9adb63c3",
+                            "name": "TLB Check Error"
+                        }
+                    }
+                ],
+                "processorErrorInfoNum": 3
+            }
+        }
+    ]
+}