GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — async-profiler/src/fdtransferClient.h at jonoffcpu-dev · jonoffcpu/async-profiler Expand file tree/ Copy pathfdtransferClient.hMore file actions 44 lines (33 loc) · 968 Bytes / Copy pathfdtransferClient.hFile metadata and controls44 lines (33 loc) · 968 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 /* * Copyright The async-profiler authors * SPDX-License-Identifier: Apache-2.0 */ #ifndef _FDTRANSFER_CLIENT_H #define _FDTRANSFER_CLIENT_H #ifdef __linux__ #include "fdtransfer.h" class FdTransferClient { private: static int _peer; static int recvFd(unsigned int request_id, struct fd_response *resp, size_t resp_size); public: static bool connectToServer(const char *path); static bool hasPeer() { return _peer != -1; } static void closePeer() { if (_peer != -1) { close(_peer); _peer = -1; } } static int requestPerfFd(int* tid, int target_cpu, struct perf_event_attr* attr, const char* probe_name); static int requestKallsymsFd(); }; #else class FdTransferClient { public: static bool connectToServer(const char *path) { return false; } static bool hasPeer() { return false; } static void closePeer() { } }; #endif // __linux__ #endif // _FDTRANSFER_CLIENT_H |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |