Lines Matching full:section

3  * CPER headers and section descriptions into an intermediate JSON format.
16 #include <libcper/sections/cper-section.h>
49 //Read the appropriate number of section descriptors & sections, and convert them into IR format. in cper_to_ir()
53 //Create the section descriptor. in cper_to_ir()
58 …printf("Invalid number of section headers: Header states %d sections, could not read section %d.\n… in cper_to_ir()
70 //Read the section itself. in cper_to_ir()
76 //Add the header, section descriptors, and sections to a parent object. in cper_to_ir()
111 //Section count. in cper_header_to_ir()
124 //The validation bits for each section. in cper_header_to_ir()
241 //Converts the given EFI section descriptor into JSON IR format.
247 //The offset of the section from the base of the record header, length. in cper_section_descriptor_to_ir()
272 //Section type (GUID). in cper_section_descriptor_to_ir()
279 //Readable section type, if possible. in cper_section_descriptor_to_ir()
310 //Section severity. in cper_section_descriptor_to_ir()
324 //Converts the section described by a single given section descriptor.
331 //Read section as described by the section descriptor. in cper_section_to_ir()
333 void *section = malloc(descriptor->SectionLength); in cper_section_to_ir() local
334 if (fread(section, descriptor->SectionLength, 1, handle) != 1) { in cper_section_to_ir()
335 printf("Section read failed: Could not read %u bytes from global offset %d.\n", in cper_section_to_ir()
337 free(section); in cper_section_to_ir()
344 //Parse section to IR based on GUID. in cper_section_to_ir()
353 section_ir = section_definitions[i].ToIR(section); in cper_section_to_ir()
370 section, descriptor->SectionLength, &encoded_len); in cper_section_to_ir()
385 //Free section memory, return result. in cper_section_to_ir()
386 free(section); in cper_section_to_ir()
390 //Converts a single CPER section, without a header but with a section descriptor, to JSON.
398 //Read the section descriptor out. in cper_single_section_to_ir()
402 …printf("Failed to read section descriptor for CPER single section (fread() returned an unexpected … in cper_single_section_to_ir()
406 //Convert the section descriptor to IR. in cper_single_section_to_ir()
411 //Parse the single section. in cper_single_section_to_ir()
414 json_object_object_add(ir, "section", section_ir); in cper_single_section_to_ir()