aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingUtils.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-10 22:57:47 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-12 12:43:35 +0000
commit6730fe9cbc195f054d697b25daba8516d70658e0 (patch)
tree712edb5d7dfbb1b1b2d91b70d4009c56164ef069 /src/profiling/ProfilingUtils.cpp
parent9265a88c0064dbcf5ad4694bbdcce1b335a394e6 (diff)
downloadarmnn-6730fe9cbc195f054d697b25daba8516d70658e0.tar.gz
IVGCVSW-6842 Replace ARMNN_ASSERT with ARM_PIPE_ASSERT in profiling code
Change-Id: Ie982ae603b7fb2793baf921232d32ce43f46d444 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/ProfilingUtils.cpp')
-rw-r--r--src/profiling/ProfilingUtils.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/profiling/ProfilingUtils.cpp b/src/profiling/ProfilingUtils.cpp
index 993585a566..22388f43bf 100644
--- a/src/profiling/ProfilingUtils.cpp
+++ b/src/profiling/ProfilingUtils.cpp
@@ -5,6 +5,7 @@
#include "ProfilingUtils.hpp"
+#include <common/include/Assert.hpp>
#include <common/include/CommonProfilingUtils.hpp>
#include <common/include/ProfilingException.hpp>
#include <common/include/SwTrace.hpp>
@@ -13,7 +14,6 @@
#include <WallClockTimer.hpp>
-#include <armnn/utility/Assert.hpp>
#include <common/include/NumericCast.hpp>
@@ -94,7 +94,7 @@ std::vector<uint16_t> GetNextCounterUids(uint16_t firstUid, uint16_t cores)
void WriteBytes(const IPacketBufferPtr& packetBuffer, unsigned int offset, const void* value, unsigned int valueSize)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
WriteBytes(packetBuffer->GetWritableData(), offset, value, valueSize);
}
@@ -115,63 +115,63 @@ uint32_t ConstructHeader(uint32_t packetFamily, uint32_t packetClass, uint32_t p
void WriteUint64(const std::unique_ptr<IPacketBuffer>& packetBuffer, unsigned int offset, uint64_t value)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
WriteUint64(packetBuffer->GetWritableData(), offset, value);
}
void WriteUint32(const IPacketBufferPtr& packetBuffer, unsigned int offset, uint32_t value)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
WriteUint32(packetBuffer->GetWritableData(), offset, value);
}
void WriteUint16(const IPacketBufferPtr& packetBuffer, unsigned int offset, uint16_t value)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
WriteUint16(packetBuffer->GetWritableData(), offset, value);
}
void WriteUint8(const IPacketBufferPtr& packetBuffer, unsigned int offset, uint8_t value)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
WriteUint8(packetBuffer->GetWritableData(), offset, value);
}
void ReadBytes(const IPacketBufferPtr& packetBuffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[])
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
ReadBytes(packetBuffer->GetReadableData(), offset, valueSize, outValue);
}
uint64_t ReadUint64(const IPacketBufferPtr& packetBuffer, unsigned int offset)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
return ReadUint64(packetBuffer->GetReadableData(), offset);
}
uint32_t ReadUint32(const IPacketBufferPtr& packetBuffer, unsigned int offset)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
return ReadUint32(packetBuffer->GetReadableData(), offset);
}
uint16_t ReadUint16(const IPacketBufferPtr& packetBuffer, unsigned int offset)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
return ReadUint16(packetBuffer->GetReadableData(), offset);
}
uint8_t ReadUint8(const IPacketBufferPtr& packetBuffer, unsigned int offset)
{
- ARMNN_ASSERT(packetBuffer);
+ ARM_PIPE_ASSERT(packetBuffer);
return ReadUint8(packetBuffer->GetReadableData(), offset);
}