summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2016-07-11 15:59:17 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-08-12 09:48:43 -0400
commit333bd2d69881f31cf6db145c33daf94c23397f9f (patch)
treefeaf1e28be98a9c1f2b49ce7b57ad577a2dff62c /src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C
parent8a32eec46393c1dcd479af6c8815852494d39cf5 (diff)
downloadtalos-hostboot-333bd2d69881f31cf6db145c33daf94c23397f9f.tar.gz
talos-hostboot-333bd2d69881f31cf6db145c33daf94c23397f9f.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: 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/27459 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/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C47
1 files changed, 47 insertions, 0 deletions
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
new file mode 100644
index 000000000..39ee1a42e
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C
@@ -0,0 +1,47 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/ffdc/p9_collect_some_ffdc.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+///
+/// @file p9_collect_some_ffdc.C
+///
+
+#include <stdint.h>
+#include <fapi2.H>
+#include <p9_mc_scom_addresses.H>
+
+using fapi2::FAPI2_RC_FALSE;
+
+extern "C"
+{
+ fapi2::ReturnCode p9_collect_some_ffdc(std::vector<std::shared_ptr<fapi2::ErrorInfoFfdc>>& o_ffdc_data, uint32_t a,
+ uint8_t b)
+ {
+ FAPI_INF("parm1=%d and parm2=%d", a, b);
+ o_ffdc_data.push_back(std::shared_ptr<fapi2::ErrorInfoFfdc>(new fapi2::ErrorInfoFfdc( 0xdeadbeef, &a, sizeof(a))));
+ o_ffdc_data.push_back(std::shared_ptr<fapi2::ErrorInfoFfdc>(new fapi2::ErrorInfoFfdc( 0xcafebabe, &b, sizeof(b))));
+
+ return fapi2::ReturnCode();
+ }
+
+}
OpenPOWER on IntegriCloud