IVGCVSW-3691 Fix the Counter Directory Packet data length
authorMatteo Martincigh <matteo.martincigh@arm.com>
Tue, 24 Sep 2019 10:38:32 +0000 (11:38 +0100)
committerMatteo Martincigh <matteo.martincigh@arm.com>
Tue, 24 Sep 2019 11:31:05 +0000 (12:31 +0100)
commitf74ff2ff7f67ff0141c058a242758de97e10dd99
tree7d722ebea00b4298879671056e9bd70c21cfbcdf
parent3fb7e105ae62cbfb3ebf1edebb90e2b6672b22aa
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
src/profiling/SendCounterPacket.cpp
src/profiling/test/ProfilingTests.cpp
src/profiling/test/SendCounterPacketTests.cpp