Add auto-generated json RAS data and supporting changes
Moving forward we want to use json RAS data files that
have been auto-generated instead of maintaining the
json itself. This updates the current json RAS data
to version 2 and makes accompanying changes in the
RAS data parser and schema.
Change-Id: I1278c65f6479437630de5b9d3440d4a19f42a1f6
Signed-off-by: Caleb Palmer <cnpalmer@us.ibm.com>
diff --git a/analyzer/ras-data/ras-data-parser.cpp b/analyzer/ras-data/ras-data-parser.cpp
index 5606141..e8042ff 100644
--- a/analyzer/ras-data/ras-data-parser.cpp
+++ b/analyzer/ras-data/ras-data-parser.cpp
@@ -162,7 +162,16 @@
{
trace::err("No action defined for signature: %s %s %s", id.c_str(),
bit.c_str(), inst.c_str());
- throw; // caught later downstream
+
+ if (1 == i_data.at("version").get<unsigned int>())
+ {
+ throw; // caught later downstream
+ }
+ else
+ {
+ // Default to 'level2_M_th1' if no signature is found.
+ action = "level2_M_th1";
+ }
}
// Return the action.