Lines Matching refs:section
4 modified at compile time to include custom OEM section extensions. This document
11 section from CPER -> CPER-JSON and CPER-JSON -> CPER. For the purposes of
12 example here, we will create a fake CPER section, "myVendorSection", in
13 `cper-section-myvendor.h` and `cper-section-myvendor.c`.
15 _sections/cper-section-myvendor.h_:
24 json_object* cper_section_myvendor_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
25 void ir_section_myvendor_to_cper(json_object* section, FILE* out);
30 _sections/cper-section-myvendor.c_:
42 #include "cper-section-ccix-per.h"
44 json_object* cper_section_myvendor_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor)
46 //Define a method here that converts the bytes starting from "section" into JSON IR.
51 void ir_section_myvendor_to_cper(json_object* section, FILE* out)
59 Once this is done, we can add our section to the parser.
63 To identify our section for parsing, we must define a section GUID within
66 method for your section.
88 Finally, we need to add a section definition for our section, matching the GUID
89 to the name and conversion methods. Open `sections/cper-section.c` and add your
92 _sections/cper-section.c_:
101 #include "cper-section.h"
103 #include "cper-section-myvendor.h"
114 section between CPER-JSON and CPER binary.