| Fix parsing single section CPER error Single section CPER logs do not contain a Record Header. The check for a valid header is now performed only if the content includes a Record Header. Additionally, this update fixes an issue with the size calculation for single-section logs. Tested : $> ./cper-generate --out single-cper.file --single-section firmware $> ./cper-convert to-json-section single-cper.file Change-Id: Id7efec20df3e5b53c6f90330e0770c1f682a8d87 Signed-off-by: John Chung <john.chung@arm.com> | 1 year ago |
| Change include style to use system includes The libcper header files in libcper are installed to usr/include/libcper. Use that system includes in libcper source instead of using the project includes. Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> | 1 year ago |
| cper-section-memory: Fix validation dependency for Extended field bits Fixed incorrect dependency between validation bits 16, 17, and 18 for the Extended field. Previously, cardSmbiosHandle (validation bit 16) and moduleSmbiosHandle (validation bit 17) were incorrectly made dependent on the Extended field validation (bit 18), but these are independent components. Validation bit 18 controls the Extended field containing row address bits 16 and 17, while validation bits 16 and 17 control SMBIOS handle fields. These SMBIOS handle fields are independent components that should be validated separately from the Extended field's row address bits. Tested: Added memory-validation-bits unit test Change-Id: I9461c71bf0b782bda74ed24c95b63c080f913b19 Signed-off-by: Peter Benitez <pbenitez@nvidia.com> | 1 year ago |
| Fix pedantic warnings With the latest build system, somehow -Wpedantic got turned on. This is reasonable given that we expect this code to compile against a number of targets. Fix void issues. void function() changes to void function(void) Change-Id: I89a2dcbcd88c7d163ffdfb67927f71b39cb7aa6f Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Fix pedantic warnings With the latest build system, somehow -Wpedantic got turned on. This is reasonable given that we expect this code to compile against a number of targets. Fix void issues. void function() changes to void function(void) Change-Id: I89a2dcbcd88c7d163ffdfb67927f71b39cb7aa6f Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| cper-section-memory: Fix validation dependency for Extended field bits Fixed incorrect dependency between validation bits 16, 17, and 18 for the Extended field. Previously, cardSmbiosHandle (validation bit 16) and moduleSmbiosHandle (validation bit 17) were incorrectly made dependent on the Extended field validation (bit 18), but these are independent components. Validation bit 18 controls the Extended field containing row address bits 16 and 17, while validation bits 16 and 17 control SMBIOS handle fields. These SMBIOS handle fields are independent components that should be validated separately from the Extended field's row address bits. Tested: Added memory-validation-bits unit test Change-Id: I9461c71bf0b782bda74ed24c95b63c080f913b19 Signed-off-by: Peter Benitez <pbenitez@nvidia.com> | 1 year ago |
| Support to stringify CPER output Initial commit to add a "message" property that provides a single line description of some important properties. This makes it easier to parse multiple CPERs in crowded logs. For now, "message" is supported for nvidia, arm processor and memory types. The other types contain generic messages. Example output: "sections":[ { "message":"A Corrected CCPLEXSCF NVIDIA Error occurred on CPU 0", "Nvidia":{ "signature":"CCPLEXSC", "sections":[ { "message":"An ARM Processor Error occurred on CPU 0; Error Type(s): {Cache Error at Virtual Addr=0x41D6AA12D528 Physical Addr=0x80003A198DDA10}", "ArmProcessor":{ "errorInfoNum":1, "sections":[ { "message":"A Multi-bit ECC Memory Error occurred at address 0x0000000080000000 at node 0", Change-Id: I395d0370ec60579b8f7fede825b45a3ced8ff18f Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com> | 1 year ago |
| Make pip buildable This package would be very useful if able to be built with pip. This commit makes libcper usable from python with git clone git@github.com:openbmc/libcper.git pip install libcper The API at the moment is primitive, and only supports the parse api. An example of its usage is included. Change-Id: I944565c71f616735a738bcc4f815d25251ed27bb Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| cper-section-memory: Fix validation dependency for Extended field bits Fixed incorrect dependency between validation bits 16, 17, and 18 for the Extended field. Previously, cardSmbiosHandle (validation bit 16) and moduleSmbiosHandle (validation bit 17) were incorrectly made dependent on the Extended field validation (bit 18), but these are independent components. Validation bit 18 controls the Extended field containing row address bits 16 and 17, while validation bits 16 and 17 control SMBIOS handle fields. These SMBIOS handle fields are independent components that should be validated separately from the Extended field's row address bits. Tested: Added memory-validation-bits unit test Change-Id: I9461c71bf0b782bda74ed24c95b63c080f913b19 Signed-off-by: Peter Benitez <pbenitez@nvidia.com> | 1 year ago |
| Update .clang-format Signed-off-by: John Chung <john.chung@arm.com> Change-Id: I981ff71800745c4b5ff3af6ae64036cb1559f47d | 2 years ago |
| clang-tidy: format with config-clang-tidy Reformat the .clang-tidy file for consistency using the config-clang-tidy tool from openbmc-build-scripts. Change-Id: I49ebb5cb5160925fe413581e56562bc78d8209b9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> | 1 year ago |
| Add subprojects to gitignore Subprojects should be ignored by git. Change-Id: Ic180925b30e13fab7475d123c0127e3de56e4a42 Signed-off-by: Ed Tanous <etanous@nvidia.com> | 2 years ago |
| Change include style to use system includes The libcper header files in libcper are installed to usr/include/libcper. Use that system includes in libcper source instead of using the project includes. Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> | 1 year ago |
| Add cross compile toolchains for arm & aarch64. Change-Id: I2b192ff894a4051b652b68ee05eed2b4e8276aee | 4 years ago |
| Remove inactive reviewers Neither of these folks emails resolve any longer. Remove them from the reviewers list. Change-Id: I80751a9c5aa1d3fecfd14aff386bc8f8500cdc90 Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| README.md: Fix typos s/ninji/ninja Change-Id: I2c92dedb4eeb90761e977d06e5a1789facb12069 Signed-off-by: George Liu <liuxiwei@ieisystem.com> | 2 years ago |
| Fix base64 decode_table size Array size is 257 due to additional null terminator. base64.c:75:9: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (257 chars into 256 available) [-Werror=unterminated-string-initialization] Fix this by initialize it with a proper byte array. Change-Id: I6a6a6964601f5ae97b4b2c82f16470890da55e07 Signed-off-by: Khang D Nguyen <khangng@os.amperecomputing.com> Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Change include style to use system includes The libcper header files in libcper are installed to usr/include/libcper. Use that system includes in libcper source instead of using the project includes. Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> | 1 year ago |
| Fix parsing single section CPER error Single section CPER logs do not contain a Record Header. The check for a valid header is now performed only if the content includes a Record Header. Additionally, this update fixes an issue with the size calculation for single-section logs. Tested : $> ./cper-generate --out single-cper.file --single-section firmware $> ./cper-convert to-json-section single-cper.file Change-Id: Id7efec20df3e5b53c6f90330e0770c1f682a8d87 Signed-off-by: John Chung <john.chung@arm.com> | 1 year ago |
| Change include style to use system includes The libcper header files in libcper are installed to usr/include/libcper. Use that system includes in libcper source instead of using the project includes. Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> | 1 year ago |
| Add decode of pcie device class This commit makes two major changes. First, the device class tables were being decoded incorrectly as LSB-first. This changes them to MSB-first. Second, once this value is correct decode the tables to a string name making it much easier for users to identify a specific device that caused a PCIe error. Note: The majority of the mode lookup table was created by LLM. The entries have been manually reviewed for correctness and completeness. Change-Id: I61bc813dbab39ca6116046e302dafca9fbbb0893 Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Fix some json schema validation bugs There were a couple of places where we would add null objects when they were not allowed. Fix them. Change-Id: I7c4c12ea1fa2913014e79603995267a9e560e288 Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Fix C function signature with no parameters Use void in parameter types to satisfy the compiler. Change-Id: I6a6a696449f043209b9f32290b914bbae54aefb7 Signed-off-by: Khang D Nguyen <khangng@os.amperecomputing.com> | 1 year ago |
| Fix pedantic warnings With the latest build system, somehow -Wpedantic got turned on. This is reasonable given that we expect this code to compile against a number of targets. Fix void issues. void function() changes to void function(void) Change-Id: I89a2dcbcd88c7d163ffdfb67927f71b39cb7aa6f Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Make pip buildable This package would be very useful if able to be built with pip. This commit makes libcper usable from python with git clone git@github.com:openbmc/libcper.git pip install libcper The API at the moment is primitive, and only supports the parse api. An example of its usage is included. Change-Id: I944565c71f616735a738bcc4f815d25251ed27bb Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Make pip buildable This package would be very useful if able to be built with pip. This commit makes libcper usable from python with git clone git@github.com:openbmc/libcper.git pip install libcper The API at the moment is primitive, and only supports the parse api. An example of its usage is included. Change-Id: I944565c71f616735a738bcc4f815d25251ed27bb Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Make pip buildable This package would be very useful if able to be built with pip. This commit makes libcper usable from python with git clone git@github.com:openbmc/libcper.git pip install libcper The API at the moment is primitive, and only supports the parse api. An example of its usage is included. Change-Id: I944565c71f616735a738bcc4f815d25251ed27bb Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |
| Make pip buildable This package would be very useful if able to be built with pip. This commit makes libcper usable from python with git clone git@github.com:openbmc/libcper.git pip install libcper The API at the moment is primitive, and only supports the parse api. An example of its usage is included. Change-Id: I944565c71f616735a738bcc4f815d25251ed27bb Signed-off-by: Ed Tanous <etanous@nvidia.com> | 1 year ago |