summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2016-07-11 15:59:17 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2016-09-27 16:44:40 -0400
commitcd3b559428311bd45a52fd632ae54c38b2890b3f (patch)
tree8b9414c92293e9675d3a8b74ac51abc38e1c5ab7 /src/import
parent68782996709ccf0c5b70801b5e21347977c5646d (diff)
downloadtalos-hostboot-cd3b559428311bd45a52fd632ae54c38b2890b3f.tar.gz
talos-hostboot-cd3b559428311bd45a52fd632ae54c38b2890b3f.zip
Update parseErrorInfo.pl to support collectFfdc tags for SBE
-Modified script to enable passing back from the SBE parameters for the collectFfdc fuction -Added sample code for collectFfdc tags to proc_example_errors.xml -Added sample collectFfdc function p9_collect_some_ffdc -Fixed compile issue in fapi2_variable_buffer_test which was a result of changes to the hwp_ffdc_classes generated by the script. Change-Id: I3dff58b435fb6904be14c6f570e68dc3b74c59a9 Original-Change-Id: I6abbbc05ed38e368eb0ff586a22cc5aba824bad4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27048 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: Deepak Kodihalli <dkodihal@in.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30346 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import')
-rw-r--r--src/import/chips/p9/procedures/hwp/ffdc/ffdc_includes.H2
-rw-r--r--src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C1
-rw-r--r--src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.H10
3 files changed, 12 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/ffdc/ffdc_includes.H b/src/import/chips/p9/procedures/hwp/ffdc/ffdc_includes.H
index ac7b1e92f..7119043e5 100644
--- a/src/import/chips/p9/procedures/hwp/ffdc/ffdc_includes.H
+++ b/src/import/chips/p9/procedures/hwp/ffdc/ffdc_includes.H
@@ -24,10 +24,12 @@
/* IBM_PROLOG_END_TAG */
#ifndef __FFDC_INCLUDES_H
#define __FFDC_INCLUDES_H
+
/// @file ffdc_includes.H
///
/// @brief main file used to export all include files for FFDC procedures
///
+
#include <p9_collect_some_ffdc.H>
#endif
diff --git a/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C b/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C
index 39ee1a42e..4299d296d 100644
--- a/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C
+++ b/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C
@@ -28,7 +28,6 @@
#include <stdint.h>
#include <fapi2.H>
-#include <p9_mc_scom_addresses.H>
using fapi2::FAPI2_RC_FALSE;
diff --git a/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.H b/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.H
index f36b62470..76b28b690 100644
--- a/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.H
+++ b/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.H
@@ -49,6 +49,16 @@ typedef fapi2::ReturnCode (*p9_collect_some_ffdc_FP_t)(std::vector<std::shared_p
extern "C"
{
+///
+/// @brief Sample procedure used to demonstrate FFDC collection using
+/// collectFfdc tag in xml files
+/// @param[in] o_ffdc_data - default parameter ffdc data returned in this
+/// vector
+/// @param[in] a - parameter passed from the SBE through the ffdc data buffer
+/// @param[in] b - parameter passed from the SBE through the ffdc data buffer
+///
+/// @return FAPI2_RC_SUCCESS iff ok
+///
fapi2::ReturnCode p9_collect_some_ffdc(std::vector<std::shared_ptr<fapi2::ErrorInfoFfdc>>& o_ffdc_data, uint32_t a,
uint8_t b);
OpenPOWER on IntegriCloud