Home
last modified time | relevance | path

Searched refs:header_ir (Results 1 – 3 of 3) sorted by relevance

/openbmc/libcper/
H A Dir-parse.c18 void ir_header_to_cper(json_object *header_ir,
84 void ir_header_to_cper(json_object *header_ir, in ir_header_to_cper() argument
90 json_object *revision = json_object_object_get(header_ir, "revision"); in ir_header_to_cper()
101 json_object_object_get(header_ir, "sectionCount")); in ir_header_to_cper()
105 json_object *severity = json_object_object_get(header_ir, "severity"); in ir_header_to_cper()
115 json_object_object_get(header_ir, "recordLength")); in ir_header_to_cper()
118 if (json_object_object_get_ex(header_ir, "timestamp", &obj)) { in ir_header_to_cper()
124 json_object_object_get(header_ir, in ir_header_to_cper()
132 json_object_object_get_ex(header_ir, "platformID", &platform_id); in ir_header_to_cper()
134 json_object_object_get_ex(header_ir, "partitionID", &partition_id); in ir_header_to_cper()
[all …]
H A Dcper-parse.c67 json_object *header_ir = NULL; in cper_buf_to_ir() local
92 header_ir = cper_header_to_ir(header); in cper_buf_to_ir()
94 json_object_object_add(parent, "header", header_ir); in cper_buf_to_ir()
230 json_object *header_ir = json_object_new_object(); in cper_header_to_ir() local
234 json_object_object_add(header_ir, "revision", revision); in cper_header_to_ir()
237 add_int(header_ir, "sectionCount", header->SectionCount); in cper_header_to_ir()
245 json_object_object_add(header_ir, "severity", error_severity); in cper_header_to_ir()
248 add_uint(header_ir, "recordLength", header->RecordLength); in cper_header_to_ir()
255 add_string(header_ir, "timestamp", timestamp_string); in cper_header_to_ir()
257 add_bool(header_ir, "timestampIsPrecis in cper_header_to_ir()
[all...]
/openbmc/libcper/tests/
H A Dir-tests.c705 json_object *header_ir = json_object_new_object(); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
706 add_int(header_ir, "revision", 0); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
707 add_int(header_ir, "sectionCount", 1); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
708 add_int(header_ir, "severity", 0); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
709 add_int(header_ir, "recordLength", 256); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
710 add_string(header_ir, "timestamp", "0000-00-00T00:00:00+00:00"); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
711 add_bool(header_ir, "timestampIsPrecise", 0); in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
712 add_string(header_ir, "platformID", in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
714 add_string(header_ir, "creatorID", in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
716 add_string(header_ir, "notificationTyp in NVIDIAEVENTEventHeaderVersionMismatch_IRValid()
704 json_object *header_ir = json_object_new_object(); NVIDIAEVENTEventHeaderVersionMismatch_IRValid() local
[all...]