diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2013-09-18 16:15:48 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-17 11:26:14 -0500 |
commit | 25a68ad9643b83001dbe80120f854221e65e9585 (patch) | |
tree | e635de6c5c07e2f99a309256c8bcf69ca495034d /src/usr/testcore/rtloader | |
parent | 63245d62a4ffe99ad2eaf6b4f1a88862065ceedf (diff) | |
download | blackbird-hostboot-25a68ad9643b83001dbe80120f854221e65e9585.tar.gz blackbird-hostboot-25a68ad9643b83001dbe80120f854221e65e9585.zip |
Hostboot runtime errl support
RTC: 79415
Change-Id: I2fd60b48046425692fb3921b46ac21b57e1dba96
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6349
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/testcore/rtloader')
-rw-r--r-- | src/usr/testcore/rtloader/loader.H | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/usr/testcore/rtloader/loader.H b/src/usr/testcore/rtloader/loader.H index 9b17fcea5..205522536 100644 --- a/src/usr/testcore/rtloader/loader.H +++ b/src/usr/testcore/rtloader/loader.H @@ -26,6 +26,8 @@ #include <pnor/pnorif.H> #include <util/align.H> #include <sys/mm.h> +#include <errl/errlentry.H> +#include <errl/errlmanager.H> #include <runtime/interface.h> @@ -97,6 +99,7 @@ class RuntimeLoaderTest : public CxxTest::TestSuite intf->free = free; intf->realloc = realloc; intf->assert = rt_assert; + intf->sendErrorLog = rt_logErr; // Call init. runtimeInterfaces_t* rtInterface = @@ -159,6 +162,28 @@ class RuntimeLoaderTest : public CxxTest::TestSuite { assert(false); } -}; + static int rt_logErr(uint32_t plid, + uint32_t data_len, + void * data) + { + uint64_t rc = 0; + TRACFCOMP(g_trac_test, + "RUNTIME MSG: Log error. Plid: %d len: %d", + plid, + data_len); + + TRACDBIN(g_trac_test, "RUNTIME ERROR LOG:",data,data_len); + + + errlHndl_t err = + new ERRORLOG::ErrlEntry(ERRORLOG::ERRL_SEV_INFORMATIONAL, + 0,0); + rc = err->unflatten(data, data_len); + + errlCommit(err,CXXTEST_COMP_ID); + + return rc; + } +}; #endif |