summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/errlentry.C
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2017-11-27 10:24:27 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-04-13 12:33:21 -0400
commit21080c6885b10977d4a1fe51e2dba79cb67d26c8 (patch)
tree8d72c6c5b363788968bb47c8b67a9e8577b6dd83 /src/usr/errl/errlentry.C
parentafb0e6a438eeda79822dd1dde73b98e6a87fde5b (diff)
downloadtalos-hostboot-21080c6885b10977d4a1fe51e2dba79cb67d26c8.tar.gz
talos-hostboot-21080c6885b10977d4a1fe51e2dba79cb67d26c8.zip
Log Hostboot state information in all error logs
Add the Istep number and substep number to Hostboot Error Logs to assist in problem debug. These items will be added as a user data record to all Hostboot Error Logs prior to Runtime. Change-Id: Ib5d269f3c1853d6d6856669744630dc130fa7094 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54764 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> 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/usr/errl/errlentry.C')
-rw-r--r--src/usr/errl/errlentry.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index c05d10d1d..ea93a0ad0 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -44,6 +44,7 @@
#include <errl/errludstring.H>
#include <errl/errluserdetails.H>
#include <errl/errludattribute.H>
+#include <errl/errludstate.H>
#include <trace/interface.H>
#include <arch/ppc.H>
#include <hwas/common/hwasCallout.H>
@@ -99,6 +100,21 @@ ErrlEntry::ErrlEntry(const errlSeverity_t i_sev,
#endif
// Collect the Backtrace and add it to the error log
iv_pBackTrace = new ErrlUserDetailsBackTrace();
+
+#ifndef __HOSTBOOT_RUNTIME
+ // Add the istep data to the vector of sections for this error log
+ ErrlUserDetailsSysState * l_pErrlUserDetailsSysState =
+ new ErrlUserDetailsSysState();
+
+ ErrlUD * l_pUdSection = new ErrlUD( l_pErrlUserDetailsSysState,
+ sizeof(ErrlUserDetailsSysState),
+ ERRL_COMP_ID,
+ 1,
+ ERRL_UDT_SYSSTATE );
+
+ iv_SectionVector.push_back( l_pUdSection );
+#endif
+
// Automatically add a software callout if asked
if( i_hbSwError )
{
OpenPOWER on IntegriCloud