diff options
author | Robert Lippert <rlippert@google.com> | 2013-12-02 14:57:43 -0800 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-10-16 10:43:01 -0500 |
commit | 9d25a0c828cb86323e3a6bcdba469c0bedb8ec4d (patch) | |
tree | 082f93e77bdeb61c2702224c634be3aa569384f8 /src/include/usr/errl | |
parent | f808a3099ed6c3e362529fe283573b2028929299 (diff) | |
download | talos-hostboot-9d25a0c828cb86323e3a6bcdba469c0bedb8ec4d.tar.gz talos-hostboot-9d25a0c828cb86323e3a6bcdba469c0bedb8ec4d.zip |
errl: display user detail sections of error logs
Error log entries now print out like this
================================================
Error reported by hwpf (0x0900)
HW Procedure generated error. See User Data.
ModuleId 0x02 MOD_HWP_RC_TO_ERRL
ReasonCode 0x090f RC_HWP_GENERATED_ERROR
UserData1 RC value from HWP 0x00000000007f9b90
UserData2 <unused> 0x0000000000000000
User Data Section 0, type UD
Subsection type 0x01
ComponentId hwpf (0x0900)
STRING
User Data Section 1, type UD
Subsection type 0x0c
ComponentId hb-trace (0x3100)
User Data Section 2, type UD
Subsection type 0x0c
ComponentId hb-trace (0x3100)
User Data Section 3, type UD
Subsection type 0x0c
ComponentId hb-trace (0x3100)
User Data Section 4, type UD
Subsection type 0x02
ComponentId errl (0x0100)
TARGET
Label tag Target eeeeeeee
HUID 000d002c
Phys path Physical /Sys0/Node0/Membuf22/MBA0
Affinity path Logical /Sys0/Node0/Proc2/MCS6/Membuf22/MBA0
User Data Section 5, type UD
Subsection type 0x0c
ComponentId hb-trace (0x3100)
================================================
Change-Id: I289d956a7af2e6effb24afeb11f29ac54c6e0311
RTC: 97491
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11302
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r-- | src/include/usr/errl/errlentry.H | 11 | ||||
-rw-r--r-- | src/include/usr/errl/errlsctn.H | 12 | ||||
-rw-r--r-- | src/include/usr/errl/errlsctnhdr.H | 12 | ||||
-rw-r--r-- | src/include/usr/errl/errlud.H | 11 |
4 files changed, 38 insertions, 8 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H index ff340faaf..1081f365d 100644 --- a/src/include/usr/errl/errlentry.H +++ b/src/include/usr/errl/errlentry.H @@ -5,7 +5,10 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] Google Inc. */ +/* [+] 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. */ @@ -58,7 +61,10 @@ #include <targeting/common/target.H> #include <attributeenums.H> - +namespace ERRORLOGDISPLAY +{ +class ErrLogDisplay; +} namespace ERRORLOG { class ErrlEntry; @@ -88,6 +94,7 @@ class ErrlEntry { friend class ErrlManager; + friend class ERRORLOGDISPLAY::ErrLogDisplay; diff --git a/src/include/usr/errl/errlsctn.H b/src/include/usr/errl/errlsctn.H index a1fc180a3..295786614 100644 --- a/src/include/usr/errl/errlsctn.H +++ b/src/include/usr/errl/errlsctn.H @@ -5,7 +5,10 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] Google Inc. */ +/* [+] 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. */ @@ -41,6 +44,11 @@ #include <errl/errlsctnhdr.H> +namespace ERRORLOGDISPLAY +{ +class ErrLogDisplay; +} + namespace ERRORLOG { @@ -51,7 +59,7 @@ namespace ERRORLOG */ class ErrlSctn { - + friend class ERRORLOGDISPLAY::ErrLogDisplay; protected: diff --git a/src/include/usr/errl/errlsctnhdr.H b/src/include/usr/errl/errlsctnhdr.H index 12e3bef28..6d72018d1 100644 --- a/src/include/usr/errl/errlsctnhdr.H +++ b/src/include/usr/errl/errlsctnhdr.H @@ -5,7 +5,10 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] Google Inc. */ +/* [+] 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. */ @@ -42,6 +45,11 @@ #include <hbotcompid.H> #include <string.h> +namespace ERRORLOGDISPLAY +{ +class ErrLogDisplay; +} + namespace ERRORLOG { @@ -61,7 +69,7 @@ class ErrlSctnHdr friend class ErrlUD; friend class ErrlSrc; friend class ErrlEntry; - + friend class ERRORLOGDISPLAY::ErrLogDisplay; private: diff --git a/src/include/usr/errl/errlud.H b/src/include/usr/errl/errlud.H index 31d5f98c1..d7c10cc0f 100644 --- a/src/include/usr/errl/errlud.H +++ b/src/include/usr/errl/errlud.H @@ -5,7 +5,10 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] Google Inc. */ +/* [+] 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. */ @@ -33,7 +36,10 @@ #include <errl/errlsctn.H> #include <errl/errlsctnhdr.H> - +namespace ERRORLOGDISPLAY +{ +class ErrLogDisplay; +} namespace ERRORLOG { @@ -48,6 +54,7 @@ class ErrlUD : public ErrlSctn // you would expect to be part of ErrlEntry are actually instance data // in this class. friend class ErrlEntry; + friend class ERRORLOGDISPLAY::ErrLogDisplay; private: |