From c3d28b3bda803b6507ed9bf5a3a502f428593393 Mon Sep 17 00:00:00 2001 From: "Richard J. Knight" Date: Thu, 14 Jul 2016 15:19:50 -0500 Subject: 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 Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Matt K. Light Reviewed-by: Brian R. Silver Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27044 Reviewed-by: Sachin Gupta --- import/hwpf/fapi2/include/ffdc.H | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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>& i_errorInfo) + { + for( auto p : i_errorInfo ) + { + iv_info->iv_ffdcs.push_back(p); + } + }; + + /// + /// /// @brief Get a pointer to any ErrorInfo /// -- cgit v1.2.1