diff options
| author | Richard J. Knight <rjknight@us.ibm.com> | 2015-08-06 18:38:49 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-08-10 10:56:58 -0500 |
| commit | 6ba2412862a1548c442c9d082b2af1c5ed48a1f9 (patch) | |
| tree | af3cb64553faf6cfbfd5e5d7b3ebb5f8e5276798 /src/usr/errl/runtime | |
| parent | ec6c516c3a2228fe43e61c825ac215cf3e1a70e4 (diff) | |
| download | talos-hostboot-6ba2412862a1548c442c9d082b2af1c5ed48a1f9.tar.gz talos-hostboot-6ba2412862a1548c442c9d082b2af1c5ed48a1f9.zip | |
No SEL Callouts for Memory injects at runtime
-Fixed runtime resolution of the flag which determines if
an error log will be visable to the customer.
Change-Id: Id8c44b0dcdb5714c163ac6485a53216786f9fbcf
RTC:133158
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19658
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/runtime')
| -rw-r--r-- | src/usr/errl/runtime/rt_errlmanager.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/usr/errl/runtime/rt_errlmanager.C b/src/usr/errl/runtime/rt_errlmanager.C index 23258c8ec..ff668a7c4 100644 --- a/src/usr/errl/runtime/rt_errlmanager.C +++ b/src/usr/errl/runtime/rt_errlmanager.C @@ -37,6 +37,10 @@ namespace ERRORLOG { +// Allow Hidden error logs to be shown by default +uint8_t ErrlManager::iv_hiddenErrLogsEnable = + TARGETING::HIDDEN_ERRLOGS_ENABLE_ALLOW_ALL_LOGS; + extern trace_desc_t* g_trac_errl; ////////////////////////////////////////////////////////////////////////////// @@ -75,6 +79,14 @@ ErrlManager::ErrlManager() if(sys) { iv_currLogId = sys->getAttr<TARGETING::ATTR_HOSTSVC_PLID>(); + + // set whether we want to skip certain error logs or not. + iv_hiddenErrLogsEnable = + sys->getAttr<TARGETING::ATTR_HIDDEN_ERRLOGS_ENABLE>(); + + TRACFCOMP( g_trac_errl,"iv_hiddenErrorLogsEnable = 0x%x", + iv_hiddenErrLogsEnable ); + } else { @@ -245,6 +257,14 @@ void errlCommit(errlHndl_t& io_err, compId_t i_committerComp ) return; } +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Global function (not a method on an object) to get the hidden logs flag. +uint8_t getHiddenLogsEnable( ) +{ + return ERRORLOG::theErrlManager::instance().iv_hiddenErrLogsEnable; +} + /////////////////////////////////////////////////////////////////////////////// // ErrlManager::sendErrlogToMessageQueue() |

