summaryrefslogtreecommitdiffstats
path: root/sbe/sbefw/sbeFifoMsgUtils.C
diff options
context:
space:
mode:
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