summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/errlentry.C
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/errlentry.C
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/errlentry.C')
-rw-r--r--src/usr/errl/errlentry.C9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index 4dff81688..154eb17fd 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -178,9 +178,7 @@ bool ErrlEntry::collectTrace(const char i_name[], const uint64_t i_max)
{
// By passing nil arguments 2 and 3, obtain the size of the buffer.
// Besides getting buffer size, it validates i_name.
- uint64_t l_cbFull = TRACE::Trace::getTheInstance().getBuffer( i_name,
- NULL,
- 0 );
+ uint64_t l_cbFull = TRACE::getBuffer( i_name, NULL,0 );
if( 0 == l_cbFull )
{
// Problem, likely unknown trace buffer name.
@@ -204,10 +202,7 @@ bool ErrlEntry::collectTrace(const char i_name[], const uint64_t i_max)
l_pBuffer = new char[ l_cbBuffer ];
// Get the data into the buffer.
- l_cbOutput =
- TRACE::Trace::getTheInstance().getBuffer( i_name,
- l_pBuffer,
- l_cbBuffer );
+ l_cbOutput = TRACE::getBuffer( i_name, l_pBuffer, l_cbBuffer );
if( 0 == l_cbOutput )
{
OpenPOWER on IntegriCloud