diff options
author | Sakethan R Kotta <sakkotta@in.ibm.com> | 2018-03-29 07:10:59 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-06-19 17:24:01 -0400 |
commit | 1ec6201b896c5cbc22fef03df1a063faa8cd6411 (patch) | |
tree | 4eec7df976c14204aef99de916e2ff0612aca161 /src/include/usr/runtime | |
parent | 34d086e3e67827f0496b838d5d05a9964aa1346c (diff) | |
download | talos-hostboot-1ec6201b896c5cbc22fef03df1a063faa8cd6411.tar.gz talos-hostboot-1ec6201b896c5cbc22fef03df1a063faa8cd6411.zip |
HBRT Reserved Mem Trace Buffer implementation.
-Hostboot master Drawer will create TRACEBUF section in the HB
Rsvd Mem and HBRT, while booting, gets the TRACEBUF section
details and initializes the circual buffer, if available.
-If a valid data is present in the buffer, HBRT will create an
info log ERRL, otherwise initializes the buffer.
-Traces from all components are serialized and stored in the
single TRACEBUF in the same format (fsp-binary Trace). When
buffer is full, it deletes the oldest entry/entries to store
the new ones.
-ERRL->collectTrace() works similar to other buffers.
-A new test case is added to dump the traces from TRACEBUF.
Change-Id: I4ce943231a2ba30e3a13ca34d1c40ff68464a994
RTC:188726
RTC:191302
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56450
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/runtime')
-rw-r--r-- | src/include/usr/runtime/runtime_reasoncodes.H | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/usr/runtime/runtime_reasoncodes.H b/src/include/usr/runtime/runtime_reasoncodes.H index 12d9db472..3dd2fc01e 100644 --- a/src/include/usr/runtime/runtime_reasoncodes.H +++ b/src/include/usr/runtime/runtime_reasoncodes.H @@ -63,7 +63,8 @@ namespace RUNTIME MOD_RT_FIRMWARE_NOTIFY = 0x23, /**< rt_fwnotify.C */ MOD_RT_FIRMWARE_REQUEST = 0x24, /**< rt_fwreq_helper.C */ MOD_RT_ATTR_SYNC_REQUEST = 0x25, /**< rt_fwnotify.C */ - MOD_CHECK_HB_RES_MEM_LIMIT = 0x26, /**<populate_hbruntime.C */ + MOD_CHECK_HB_RES_MEM_LIMIT = 0x26, /**< populate_hbruntime.C */ + MOD_INIT_RT_RES_MEM_TRACE_BUF = 0x27, /**< rt_rsvdtracebuffer.C */ }; enum RuntimeReasonCode @@ -132,6 +133,8 @@ namespace RUNTIME RC_HB_RES_MEM_EXCEEDED = RUNTIME_COMP_ID | 0x3D, RC_SEND_SBE_TIMER_EXPIRED = RUNTIME_COMP_ID | 0x3E, RC_HOST_TIMER_THREAD_FAIL = RUNTIME_COMP_ID | 0x3F, + RC_RT_RES_TRACE_BUF_DUMPED = RUNTIME_COMP_ID | 0x40, + RC_RT_RES_TRACE_BUF_INVALID = RUNTIME_COMP_ID | 0x41, }; enum UserDetailsTypes |