IVGCVSW-3964 Implement the Periodic Counter Selection command handler
authorMatteo Martincigh <matteo.martincigh@arm.com>
Thu, 10 Oct 2019 13:08:21 +0000 (14:08 +0100)
committerMatteo Martincigh <matteo.martincigh@arm.com>
Fri, 11 Oct 2019 15:33:29 +0000 (16:33 +0100)
commite848538efbdf01aa0b067da942c3c214f8e62826
treed700239f1316a098849fcfc39ec70e926f86fd62
parentf982deaefbe5fe5814487b27f7099829839b8666
IVGCVSW-3964 Implement the Periodic Counter Selection command handler

 * Improved the PeriodicCounterPacket class to handle errors properly
 * Improved the PeriodicCounterSelectionCommandHandler to handle
   invalid counter UIDs in the selection packet
 * Added the Periodic Counter Selection command handler to the
   ProfilingService class
 * Code refactoring and added comments
 * Added WaitForPacketSent method to the SendCounterPacket class
   to allow waiting for the packets to be sent (useful in the
   unit tests)
 * Added unit tests and updated the old ones accordingly
 * Fixed threading issues with a number of unit tests

Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I271b7b0bfa801d88fe1725b934d24e30cd839ed7
15 files changed:
src/profiling/ConnectionAcknowledgedCommandHandler.cpp
src/profiling/Holder.cpp
src/profiling/Holder.hpp
src/profiling/ICounterValues.hpp
src/profiling/PeriodicCounterCapture.cpp
src/profiling/PeriodicCounterSelectionCommandHandler.cpp
src/profiling/PeriodicCounterSelectionCommandHandler.hpp
src/profiling/ProfilingService.cpp
src/profiling/ProfilingService.hpp
src/profiling/RequestCounterDirectoryCommandHandler.cpp
src/profiling/SendCounterPacket.cpp
src/profiling/SendCounterPacket.hpp
src/profiling/test/ProfilingTests.cpp
src/profiling/test/ProfilingTests.hpp
src/profiling/test/SendCounterPacketTests.hpp