blob: f58e1f4d5d4ff181a4ad6deeccaf072679f9b556 [file] [log] [blame]
Teresa Charlin9bab4962019-09-06 12:28:35 +01001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "IProfilingConnection.hpp"
7
8#include <poll.h>
9#include <Runtime.hpp>
10
11#pragma once
12
13namespace armnn
14{
15namespace profiling
16{
17
18class SocketProfilingConnection : public IProfilingConnection
19{
20public:
21 SocketProfilingConnection();
22 bool IsOpen() final;
23 void Close() final;
24 bool WritePacket(const char* buffer, uint32_t length) final;
25 Packet ReadPacket(uint32_t timeout) final;
26private:
27 // To indicate we want to use an abstract UDS ensure the first character of the address is 0.
28 const char* m_GatorNamespace = "\0gatord_namespace";
29 struct pollfd m_Socket[1]{};
30};
31
32} // namespace profiling
33} // namespace armnn