Improve Nvidia CPER decode
Add decoding of registers to the structure. Note, this requires
COUNTED_BY support which is borrowed from LIBPLDM.
Also add unit-tests for NVIDIA section, and update schema to match
existing register decoding.
Change-Id: If1c9cae97de35ba6a5dad1f462d3989ec6ac6a90
Signed-off-by: Karthik Rajagopalan <krajagopalan@nvidia.com>
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/tests/ir-tests.cpp b/tests/ir-tests.cpp
index 061f0a8..0146cac 100644
--- a/tests/ir-tests.cpp
+++ b/tests/ir-tests.cpp
@@ -293,6 +293,16 @@
cper_log_section_dual_binary_test("cxlcomponent-media");
}
+//NVIDIA section tests.
+TEST(NVIDIASectionTests, IRValid)
+{
+ cper_log_section_dual_ir_test("nvidia");
+}
+TEST(NVIDIASectionTests, BinaryEqual)
+{
+ cper_log_section_dual_binary_test("nvidia");
+}
+
//Unknown section tests.
TEST(UnknownSectionTests, IRValid)
{