IVGCVSW-3721 Add support for startup sequence (Mock Gatord service).
authorColm Donelan <Colm.Donelan@arm.com>
Fri, 11 Oct 2019 12:09:49 +0000 (13:09 +0100)
committerColm Donelan <Colm.Donelan@arm.com>
Fri, 11 Oct 2019 12:12:37 +0000 (13:12 +0100)
commita21620d32a8a0a8d527c061e2a22d51009d75877
treeb08ffee4cddb1bb3b1d206c67ea80bc2093d7bf5
parent67ef2a52c3cdcc37538d77711bbcea2f0e5655e5
IVGCVSW-3721 Add support for startup sequence (Mock Gatord service).

* Receive and process the stream metadata from the client.
* Send the connection ack packet.
* Wait in a receiving thread and print the packets.
* GatordMockTest and Impl for PeriodicCounterCapture CommandHandler
* CaptureData class to retain packet data
* MockUtils
* Update SocketProfilingConnection to fix non blocking receipt of packets.
* Restructure directory layout following review comments.
* Extract the mock service into a static library in the cmake files.

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Signed-off-by: Keith Davis <keith.davis@arm.com>
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I33c1c9f93976708c9315f71290d42cff53b8c075
19 files changed:
CMakeLists.txt
cmake/GlobalConfig.cmake
src/profiling/SocketProfilingConnection.cpp
src/profiling/SocketProfilingConnection.hpp
tests/profiling/CommandLineProcessor.hpp [deleted file]
tests/profiling/GatordMockMain.cpp [deleted file]
tests/profiling/GatordMockService.cpp [deleted file]
tests/profiling/GatordMockService.hpp [deleted file]
tests/profiling/gatordmock/CommandFileParser.cpp [new file with mode: 0644]
tests/profiling/gatordmock/CommandFileParser.hpp [new file with mode: 0644]
tests/profiling/gatordmock/CommandLineProcessor.cpp [moved from tests/profiling/CommandLineProcessor.cpp with 68% similarity]
tests/profiling/gatordmock/CommandLineProcessor.hpp [new file with mode: 0644]
tests/profiling/gatordmock/GatordMockMain.cpp [new file with mode: 0644]
tests/profiling/gatordmock/GatordMockService.cpp [new file with mode: 0644]
tests/profiling/gatordmock/GatordMockService.hpp [new file with mode: 0644]
tests/profiling/gatordmock/MockUtils.hpp [new file with mode: 0644]
tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp [new file with mode: 0644]
tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp [new file with mode: 0644]
tests/profiling/gatordmock/tests/GatordMockTests.cpp [new file with mode: 0644]