aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SendTimelinePacket.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2020-06-22 20:41:43 +0100
committerJames Conroy <james.conroy@arm.com>2020-06-23 09:14:51 +0000
commit0204f09cb7462c675c45c76cd13d677d67f73589 (patch)
tree880f018f376b04652730715d1bc3fbaff1f90df7 /src/profiling/SendTimelinePacket.cpp
parent1f45dc3e7f955a6d75c8516ba6fd7eade2b03cb7 (diff)
downloadarmnn-0204f09cb7462c675c45c76cd13d677d67f73589.tar.gz
IVGCVSW-5022 Fix master intermittent failure by providing surge buffer capacity
Change-Id: I028aec48d89d7348836223029aa1e8c315f160fa Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/SendTimelinePacket.cpp')
-rw-r--r--src/profiling/SendTimelinePacket.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/profiling/SendTimelinePacket.cpp b/src/profiling/SendTimelinePacket.cpp
index b749b5dc72..2ca5f5470b 100644
--- a/src/profiling/SendTimelinePacket.cpp
+++ b/src/profiling/SendTimelinePacket.cpp
@@ -64,9 +64,13 @@ void SendTimelinePacket::ReserveBuffer()
m_WriteBuffer = m_BufferManager.Reserve(MAX_METADATA_PACKET_LENGTH, reserved);
// Check if there is enough space in the buffer
- if (m_WriteBuffer == nullptr || reserved < m_Offset)
+ if (m_WriteBuffer == nullptr)
+ {
+ throw BufferExhaustion("No free buffers left", CHECK_LOCATION());
+ }
+ if (reserved < m_Offset)
{
- throw BufferExhaustion("No space left on buffer", CHECK_LOCATION());
+ throw BufferExhaustion("Reserved space too small for use", CHECK_LOCATION());
}
if (m_DirectoryPackage)