diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-09-24 11:38:32 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-09-24 12:31:05 +0100 |
commit | f74ff2ff7f67ff0141c058a242758de97e10dd99 (patch) | |
tree | 7d722ebea00b4298879671056e9bd70c21cfbcdf /src/profiling/test/SendCounterPacketTests.cpp | |
parent | 3fb7e105ae62cbfb3ebf1edebb90e2b6672b22aa (diff) | |
download | armnn-f74ff2ff7f67ff0141c058a242758de97e10dd99.tar.gz |
IVGCVSW-3691 Fix the Counter Directory Packet data length
* The data_length field in the header represents only the size
of the data included in the packet after the header, so the
header size is not included
* Removed a number of conversion macros in SendCounterPacket by
using numeric casts where possible
* Updated the unit tests accordingly
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: Ifb23c341c442ff3d33b234d4213b739a77ceb658
Diffstat (limited to 'src/profiling/test/SendCounterPacketTests.cpp')
-rw-r--r-- | src/profiling/test/SendCounterPacketTests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profiling/test/SendCounterPacketTests.cpp b/src/profiling/test/SendCounterPacketTests.cpp index f32c3684c1..90bc9225a0 100644 --- a/src/profiling/test/SendCounterPacketTests.cpp +++ b/src/profiling/test/SendCounterPacketTests.cpp @@ -1143,7 +1143,7 @@ BOOST_AUTO_TEST_CASE(SendCounterDirectoryPacketTest2) uint32_t packetHeaderWord1 = ReadUint32(readBuffer, 4); BOOST_TEST(((packetHeaderWord0 >> 26) & 0x3F) == 0); // packet_family BOOST_TEST(((packetHeaderWord0 >> 16) & 0x3FF) == 2); // packet_id - BOOST_TEST(packetHeaderWord1 == 944); // data_length + BOOST_TEST(packetHeaderWord1 == 936); // data_length // Check the body header uint32_t bodyHeaderWord0 = ReadUint32(readBuffer, 8); |