Attn: Add support for raw pel symptom-id
Update raw pel symptom-id based on TI info data.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I501938e0fc9dba189999ab1491d23acd15628068
diff --git a/attn/pel/pel_minimal.hpp b/attn/pel/pel_minimal.hpp
index 79c0c11..ad07ab3 100644
--- a/attn/pel/pel_minimal.hpp
+++ b/attn/pel/pel_minimal.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include "extended_user_header.hpp"
#include "pel_common.hpp"
#include "primary_src.hpp"
#include "private_header.hpp"
@@ -30,6 +31,8 @@
* |----------+------------------------------|
* | 72 | Primary SRC Section |
* |----------+------------------------------|
+ * | 20 | Extended User Header |
+ * |----------+------------------------------|
*/
class PelMinimal
{
@@ -111,6 +114,13 @@
*/
void setSectionCount(uint8_t sectionCount);
+ /**
+ * @brief Set the symptom id field in extended user header
+ *
+ * @param[in] symptomId - The symptom ID to set
+ */
+ void setSymptomId(const std::string& symptomId);
+
private:
/**
* @brief Maximum PEL size
@@ -138,6 +148,11 @@
* @brief PEL Primary SRC
*/
std::unique_ptr<PrimarySrc> _ps;
+
+ /**
+ * @brief PEL Extended User Header
+ */
+ std::unique_ptr<ExtendedUserHeader> _eh;
};
} // namespace pel