summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C b/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C
index d4e29723c..470568c01 100644
--- a/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C
+++ b/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C
@@ -397,6 +397,9 @@ void MemTdCtlr<T>::collectStateCaptureData( STEP_CODE_DATA_STRUCT & io_sc,
uint8_t queueCount = queue.size();
if ( 15 < queueCount ) queueCount = 15;
+ // Don't add anything if there is no data.
+ if ( nullptr == iv_curProcedure && 0 == queueCount ) return;
+
// Get the buffer
uint32_t bitLen = 32 + queueCount*14; // Header + TD queue
BitStringBuffer bsb( bitLen );
OpenPOWER on IntegriCloud