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()
77 //Add the header, section descriptors, and sections to a parent object. in cper_to_ir()
112 //Section count. in cper_header_to_ir()
237 //Converts the given EFI section descriptor into JSON IR format.
243 //The offset of the section from the base of the record header, length. in cper_section_descriptor_to_ir()
261 //Section type (GUID). in cper_section_descriptor_to_ir()
268 //Readable section type, if possible. in cper_section_descriptor_to_ir()
299 //Section severity. in cper_section_descriptor_to_ir()
313 //Converts the section described by a single given section descriptor.
320 //Read section as described by the section descriptor. in cper_section_to_ir()
322 void *section = malloc(descriptor->SectionLength); in cper_section_to_ir() local
323 if (fread(section, descriptor->SectionLength, 1, handle) != 1) { in cper_section_to_ir()
324 printf("Section read failed: Could not read %u bytes from global offset %d.\n", in cper_section_to_ir()
326 free(section); in cper_section_to_ir()
333 //Parse section to IR based on GUID. in cper_section_to_ir()
342 section_ir = section_definitions[i].ToIR(section); in cper_section_to_ir()
359 section, descriptor->SectionLength, &encoded_len); in cper_section_to_ir()
374 //Free section memory, return result. in cper_section_to_ir()
375 free(section); in cper_section_to_ir()
379 //Converts a single CPER section, without a header but with a section descriptor, to JSON.
387 //Read the section descriptor out. in cper_single_section_to_ir()
391 …printf("Failed to read section descriptor for CPER single section (fread() returned an unexpected … in cper_single_section_to_ir()
395 //Convert the section descriptor to IR. in cper_single_section_to_ir()
400 //Parse the single section. in cper_single_section_to_ir()
403 json_object_object_add(ir, "section", section_ir); in cper_single_section_to_ir()