IVGCVSW-4328 BufferManager running out of buffers crashes application
authorSadik Armagan <sadik.armagan@arm.com>
Mon, 10 Feb 2020 12:24:15 +0000 (12:24 +0000)
committerSadik Armagan <sadik.armagan@arm.com>
Mon, 10 Feb 2020 14:08:54 +0000 (14:08 +0000)
commit3896b47a3532aadcde43a3e7fed760a0f4a29e6b
treea22d1b6d5b2df7518c9116dd48a7ca1990b3ae66
parent03181ff73f4b37d2132f15c4bd229a148840cc15
IVGCVSW-4328 BufferManager running out of buffers crashes application

* Refactored SendCounterPacket classes, separated SendCounterPacket from Send thread
* Created ISendThread.hpp, IConsumer, SendThread.hpp and SendThread.cpp
* Injected IConsumer to BufferManager to notify SendThread when packet is ready to read

Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I80f0bb8b8401c6bfd1611f7760217c6fe35d7ad8
22 files changed:
Android.mk
CMakeLists.txt
src/profiling/BufferManager.cpp
src/profiling/BufferManager.hpp
src/profiling/ConnectionAcknowledgedCommandHandler.cpp
src/profiling/IBufferManager.hpp
src/profiling/IConsumer.hpp [new file with mode: 0644]
src/profiling/ISendCounterPacket.hpp
src/profiling/ISendThread.hpp [new file with mode: 0644]
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/SendThread.cpp [new file with mode: 0644]
src/profiling/SendThread.hpp [new file with mode: 0644]
src/profiling/test/ProfilingTests.cpp
src/profiling/test/SendCounterPacketTests.cpp
src/profiling/test/SendCounterPacketTests.hpp