diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-07-14 15:19:50 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-07-18 02:39:43 -0400 |
commit | c3d28b3bda803b6507ed9bf5a3a502f428593393 (patch) | |
tree | d4f8ac1e9244bce38343c12c2f1c425d8b6439e8 /import/hwpf | |
parent | c4b31fce136be2996800f5625d254f424640c388 (diff) | |
download | talos-sbe-c3d28b3bda803b6507ed9bf5a3a502f428593393.tar.gz talos-sbe-c3d28b3bda803b6507ed9bf5a3a502f428593393.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/27044
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/hwpf')
-rw-r--r-- | import/hwpf/fapi2/include/ffdc.H | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/import/hwpf/fapi2/include/ffdc.H b/import/hwpf/fapi2/include/ffdc.H index 684fb661..0fe67c50 100644 --- a/import/hwpf/fapi2/include/ffdc.H +++ b/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 /// |