summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/test
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-10-31 16:01:11 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-12-14 10:18:59 -0600
commitda3888270ff596441bf78535c26dee0a7d923145 (patch)
tree019b88ce38e87b8346e0ef659f058556e26dec42 /src/usr/errl/test
parent6d7290eca2b0e753d1b954a56e2c82284dd23eb9 (diff)
downloadtalos-hostboot-da3888270ff596441bf78535c26dee0a7d923145.tar.gz
talos-hostboot-da3888270ff596441bf78535c26dee0a7d923145.zip
Lockless trace implementation
RTC: 35396 Change-Id: I96ea0d95606f04abb4dc2b0470345ca475b53912 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2520 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/errl/test')
-rw-r--r--src/usr/errl/test/errltest.H10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/usr/errl/test/errltest.H b/src/usr/errl/test/errltest.H
index 2383d45f7..ccec16892 100644
--- a/src/usr/errl/test/errltest.H
+++ b/src/usr/errl/test/errltest.H
@@ -43,6 +43,7 @@
#include <hwas/common/hwasCallout.H>
#include <hwas/common/deconfigGard.H>
+#include "../../trace/entry.H"
#define TEST_SEVERITY ERRORLOG::ERRL_SEV_INFORMATIONAL
@@ -160,7 +161,8 @@ public:
break;
}
- fOK = l_err->collectTrace( "TARG", sizeof(trace_buf_head_t)-2);
+ fOK = l_err->collectTrace("TARG",
+ sizeof(TRACE::trace_buf_head_t)-2);
if( fOK )
{
// expect an error, buffer not big enough
@@ -168,7 +170,8 @@ public:
break;
}
- fOK = l_err->collectTrace( "TARG", sizeof( trace_buf_head_t ));
+ fOK = l_err->collectTrace("TARG",
+ sizeof(TRACE::trace_buf_head_t));
if( !fOK )
{
// Buffer is big enough for the header only. It is
@@ -179,7 +182,8 @@ public:
// sizeof( trace_buf_head_t ) + n bytes such that a single trace
// entry cannot fit into.
- uint64_t l_cb = sizeof(trace_buf_head_t) + (sizeof(trace_bin_entry_t)/2);
+ uint64_t l_cb = sizeof(TRACE::trace_buf_head_t) +
+ (sizeof(TRACE::trace_bin_entry_t)/2);
fOK = l_err->collectTrace( "TARG", l_cb );
if( !fOK )
{
OpenPOWER on IntegriCloud