summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2/include/ffdc.H
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2016-07-14 15:19:50 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-21 17:16:52 -0400
commitb4ac502c2f72ac14a0e129b3579e99dec50bf610 (patch)
treec9c4244eaf7621d194d9f0ab804dfae3fdc65e61 /src/import/hwpf/fapi2/include/ffdc.H
parenta0fe75642c8e289f48153d8cb093d6776d1bd10d (diff)
downloadtalos-hostboot-b4ac502c2f72ac14a0e129b3579e99dec50bf610.tar.gz
talos-hostboot-b4ac502c2f72ac14a0e129b3579e99dec50bf610.zip
Add new addErrorInfo method to enable collectFfdc and collectRegFfdc
-new interface to make it easy to add error info passed back from the ffdc collection functions. Change-Id: I0182492ee980b733a8db9f8d6cac4361470bb606 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27043 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27045 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/include/ffdc.H')
-rw-r--r--src/import/hwpf/fapi2/include/ffdc.H22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/ffdc.H b/src/import/hwpf/fapi2/include/ffdc.H
index 684fb6617..0fe67c50c 100644
--- a/src/import/hwpf/fapi2/include/ffdc.H
+++ b/src/import/hwpf/fapi2/include/ffdc.H
@@ -156,6 +156,28 @@ class FirstFailureData
const ErrorInfoEntry* i_pEntries,
const uint8_t i_count);
+
+ ///
+ /// @brief Add ErrorInfo
+ ///
+ /// This is called by the collectFfdc and collectRegFfdc functions
+ /// following the call to actually collect the ffdc data, the ffdc
+ /// collection functions return a vector of shared pointers to the
+ /// ErrorInfoFfdc objects
+ ///
+ /// @param[in] i_errorInfo - vector of shared pointers to
+ /// errorInfoFfdc objects
+ ///
+ inline void addErrorInfo(std::vector<std::shared_ptr<ErrorInfoFfdc>>& i_errorInfo)
+ {
+ for( auto p : i_errorInfo )
+ {
+ iv_info->iv_ffdcs.push_back(p);
+ }
+ };
+
+ ///
+
///
/// @brief Get a pointer to any ErrorInfo
///
OpenPOWER on IntegriCloud