summaryrefslogtreecommitdiffstats
path: root/sbe/sbefw/sbeFifoMsgUtils.C
diff options
context:
space:
mode:
authorShakeeb <shakeebbk@in.ibm.com>2016-04-28 05:57:28 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-07-25 02:21:32 -0400
commit8e7ea62025f3208957d53cf1735fbe2019d80a73 (patch)
tree6b7fe45905fe50af0ccae909cafa03adb614209e /sbe/sbefw/sbeFifoMsgUtils.C
parent97eb4869d5e2f91d9ec154741f686677f3642e1f (diff)
downloadtalos-sbe-8e7ea62025f3208957d53cf1735fbe2019d80a73.tar.gz
talos-sbe-8e7ea62025f3208957d53cf1735fbe2019d80a73.zip
SBE internal FFDC package generation
Support to generate SBE internal FFDC package over both FIFO and MBOX interface RTC:151555 Change-Id: I6f07dc017312063a0ed9a1794fecafb2fb62041c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24362 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'sbe/sbefw/sbeFifoMsgUtils.C')
-rw-r--r--sbe/sbefw/sbeFifoMsgUtils.C41
1 files changed, 39 insertions, 2 deletions
diff --git a/sbe/sbefw/sbeFifoMsgUtils.C b/sbe/sbefw/sbeFifoMsgUtils.C
index a86f1363..15e36516 100644
--- a/sbe/sbefw/sbeFifoMsgUtils.C
+++ b/sbe/sbefw/sbeFifoMsgUtils.C
@@ -1,3 +1,27 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: sbe/sbefw/sbeFifoMsgUtils.C $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015,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: ppe/sbe/sbefw/sbeFifoMsgUtils.C
*
@@ -11,6 +35,7 @@
#include "sbeFifoMsgUtils.H"
#include "sbeerrorcodes.H"
#include "assert.h"
+#include "sbeFFDC.H"
// If we can not perform FIFO operation ( FIFO FULL while writing
// or EMPTY while reading ) we will sleep for FIFO_WAIT_SLEEP_TIME
@@ -321,10 +346,22 @@ uint32_t sbeDsSendRespHdr(const sbeRespGenHdr_t &i_hdr,
break;
}
distance += len;
+
+ //Add FFDC data as well.
+ //Generate all the fields of FFDC package
+ SbeFFDCPackage sbeFfdc;
+ rc = sbeFfdc.sendOverFIFO(i_hdr.primaryStatus,
+ i_hdr.secondaryStatus,
+ SBE_FFDC_ALL_DUMP,
+ len);
+ if (rc)
+ {
+ break;
+ }
+ distance += len;
}
+
len = sizeof(distance)/sizeof(uint32_t);
- //@TODO via RTC 129076.
- //Need to add FFDC data as well.
rc = sbeDownFifoEnq_mult ( len, &distance);
if (rc)
{
OpenPOWER on IntegriCloud