summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl/errlentry.H
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2012-04-25 15:48:55 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-06-07 12:40:36 -0500
commite959276ad0504352a59fbe92013bde06517bc5da (patch)
tree9ccbe299ef830194ee97d4d5285cf0b38f88db90 /src/include/usr/errl/errlentry.H
parent39ce3d8ecf06c4c04d245a6107daa73611767c5f (diff)
downloadtalos-hostboot-e959276ad0504352a59fbe92013bde06517bc5da.tar.gz
talos-hostboot-e959276ad0504352a59fbe92013bde06517bc5da.zip
Coalesce ERRL user detail data error log sections
Add optional 'merge' flag to addFFDC() method which certain UserDetail error log objects will use to cause additional log entries to get merged together. They will ONLY get merged if they match with the last section added, to preserve error log order. In addition, add support for an addData() method on the Attributes User Detail class. And re-organize code so that constructor methods are smaller, making final library smaller. NOTE - the parse() functions are NOT complete, since building and executing the hb errlparser tool is currently broken. Story 41707 is open to do that work once the tool builds. Change-Id: I04d85620efe964ac243dd76df78ad4161e5a2f13 RTC: 41534 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1050 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl/errlentry.H')
-rw-r--r--src/include/usr/errl/errlentry.H7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H
index de63212a1..32f9c2fe7 100644
--- a/src/include/usr/errl/errlentry.H
+++ b/src/include/usr/errl/errlentry.H
@@ -295,6 +295,10 @@ public:
* which classifies the data. This in
* conjunction with the version can be used
* to decode the data.
+ * @param[in] i_merge A boolean value (defaults to false if
+ * parameter is not specified) to indicate
+ * whether this buffer is merged with the
+ * previous section iff it matches.
*
* @return Pointer to FFDC section if successfully added.
* NULL if fails
@@ -303,7 +307,8 @@ public:
const void * i_dataPtr,
const uint32_t i_ffdcLen,
const uint8_t i_ffdcVer,
- const uint8_t i_ffdcSubSect);
+ const uint8_t i_ffdcSubSect,
+ bool i_merge = false);
/**
* @brief Append more data to an FFDC section.
OpenPOWER on IntegriCloud