/external/perfetto/src/base/ |
D | scoped_file_unittest.cc | 65 ScopedFile scoped_file(raw_fd); in TEST() 93 ScopedFile scoped_file(raw_fd1); in TEST() 113 ScopedFile scoped_file(raw_fd); in TEST() 126 ScopedFile scoped_file1(ScopedFile{raw_fd1}); in TEST() 127 ScopedFile scoped_file2(std::move(scoped_file1)); in TEST() 148 ScopedFile scoped_file1(raw_fd1); in TEST() 149 ScopedFile scoped_file2(raw_fd2); in TEST() 175 ScopedFile scoped_file(raw_fd); in TEST()
|
D | unix_socket.cc | 130 return std::make_pair(UnixSocketRaw(ScopedFile(fds[0]), t), in CreatePair() 131 UnixSocketRaw(ScopedFile(fds[1]), t)); in CreatePair() 137 : UnixSocketRaw(ScopedFile(socket(AF_UNIX, GetUnixSockType(type), 0)), in UnixSocketRaw() 140 UnixSocketRaw::UnixSocketRaw(ScopedFile fd, SockType type) in UnixSocketRaw() 282 ScopedFile* fd_vec, in Receive() 384 std::unique_ptr<UnixSocket> UnixSocket::Listen(ScopedFile fd, in Listen() 406 ScopedFile fd, in AdoptConnected() 420 ScopedFile(), in UnixSocket() 426 ScopedFile adopt_fd, in UnixSocket() 576 ScopedFile new_fd(PERFETTO_EINTR(accept( in OnEvent() [all …]
|
/external/perfetto/include/perfetto/base/ |
D | unix_socket.h | 60 UnixSocketRaw(ScopedFile, SockType); 79 ScopedFile ReleaseFd() { return std::move(fd_); } in ReleaseFd() 92 ScopedFile* fd_vec = nullptr, 106 ScopedFile fd_; 194 static std::unique_ptr<UnixSocket> Listen(ScopedFile, 209 ScopedFile fd, 264 size_t Receive(void* msg, size_t len, ScopedFile*, size_t max_files = 1); 307 UnixSocket(EventListener*, TaskRunner*, ScopedFile, State, SockType);
|
D | scoped_file.h | 85 using ScopedFile = ScopedResource<int, close, -1>; variable 86 inline static ScopedFile OpenFile(const std::string& path, 91 ScopedFile fd(open(path.c_str(), flags, mode)); 94 ScopedFile fd(open(path.c_str(), flags | O_CLOEXEC, mode));
|
D | pipe.h | 40 ScopedFile rd; 41 ScopedFile wr;
|
D | event.h | 56 ScopedFile fd_; 60 ScopedFile write_fd_;
|
D | temp_file.h | 46 ScopedFile ReleaseFD(); 53 ScopedFile fd_;
|
/external/perfetto/src/traced/probes/sys_stats/ |
D | sys_stats_data_source.h | 49 using OpenFunction = base::ScopedFile (*)(const char*); 81 size_t ReadFile(base::ScopedFile*, const char* path); 85 base::ScopedFile meminfo_fd_; 86 base::ScopedFile vmstat_fd_; 87 base::ScopedFile stat_fd_;
|
/external/perfetto/src/tracing/ipc/ |
D | posix_shared_memory.h | 42 static std::unique_ptr<PosixSharedMemory> AttachToFd(base::ScopedFile); 53 static std::unique_ptr<PosixSharedMemory> MapFD(base::ScopedFile, size_t); 55 PosixSharedMemory(void* start, size_t size, base::ScopedFile); 61 base::ScopedFile fd_;
|
D | posix_shared_memory.cc | 43 base::ScopedFile fd; in Create() 73 base::ScopedFile fd) { in AttachToFd() 81 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::MapFD(base::ScopedFile fd, in MapFD() 94 base::ScopedFile fd) in PosixSharedMemory()
|
/external/perfetto/src/profiling/memory/ |
D | unwinding.h | 44 FileDescriptorMaps(base::ScopedFile fd); 66 base::ScopedFile fd_; 71 FDMemory(base::ScopedFile mem_fd); 75 base::ScopedFile mem_fd_; 97 UnwindingMetadata(pid_t p, base::ScopedFile maps_fd, base::ScopedFile mem) in UnwindingMetadata() 150 base::ScopedFile fds[kHandshakeSize];
|
D | unwinding_unittest.cc | 37 base::ScopedFile proc_mem(base::OpenFile("/proc/self/mem", O_RDONLY)); in TEST() 51 base::ScopedFile proc_mem(base::OpenFile("/proc/self/mem", O_RDONLY)); in TEST() 63 base::ScopedFile proc_maps(base::OpenFile("/proc/self/maps", O_RDONLY)); in TEST() 128 base::ScopedFile proc_maps(base::OpenFile("/proc/self/maps", O_RDONLY)); in TEST() 129 base::ScopedFile proc_mem(base::OpenFile("/proc/self/mem", O_RDONLY)); in TEST()
|
D | main.cc | 45 base::ScopedFile inherited_sock_fd); 54 base::ScopedFile inherited_sock_fd; in HeapprofdMain() 83 inherited_sock_fd = base::ScopedFile(atoi(optarg)); in HeapprofdMain() 127 base::ScopedFile inherited_sock_fd) { in StartChildHeapprofd()
|
D | shared_ring_buffer.h | 88 static base::Optional<SharedRingBuffer> Attach(base::ScopedFile); 145 SharedRingBuffer(AttachFlag, base::ScopedFile mem_fd) { in SharedRingBuffer() 149 void Initialize(base::ScopedFile mem_fd); 180 base::ScopedFile mem_fd_;
|
D | wire_protocol_unittest.cc | 56 base::ScopedFile CopyFD(int fd) { in CopyFD() 59 base::UnixSocketRaw send_sock(base::ScopedFile(sv[0]), in CopyFD() 61 base::UnixSocketRaw recv_sock(base::ScopedFile(sv[1]), in CopyFD() 65 base::ScopedFile res; in CopyFD()
|
D | client.cc | 145 base::ScopedFile maps(base::OpenFile("/proc/self/maps", O_RDONLY)); in CreateAndHandshake() 150 base::ScopedFile mem(base::OpenFile("/proc/self/mem", O_RDONLY)); in CreateAndHandshake() 171 base::ScopedFile shmem_fd; in CreateAndHandshake() 175 base::ScopedFile* fd = nullptr; in CreateAndHandshake()
|
/external/perfetto/include/perfetto/ipc/ |
D | service.h | 49 base::ScopedFile TakeReceivedFD() { in TakeReceivedFD() 52 return base::ScopedFile(); in TakeReceivedFD() 68 base::ScopedFile* received_fd_;
|
/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_procfs.cc | 55 base::ScopedFile fd = base::OpenFile(path, flags); in WriteFileInternal() 251 base::ScopedFile FtraceProcfs::OpenPipeForCpu(size_t cpu) { in OpenPipeForCpu() 258 base::ScopedFile fd = base::OpenFile(path, O_RDONLY); in ReadOneCharFromFile() 267 base::ScopedFile fd = base::OpenFile(path, O_WRONLY | O_TRUNC); in ClearFile() 310 base::ScopedFile fd = base::OpenFile(root + "trace", O_RDONLY); in CheckRootPath()
|
/external/perfetto/include/perfetto/tracing/ipc/ |
D | service_ipc_host.h | 50 virtual bool Start(base::ScopedFile producer_socket_fd, 51 base::ScopedFile consumer_socket_fd) = 0;
|
/external/perfetto/src/tracing/ipc/service/ |
D | service_ipc_host_impl.h | 42 bool Start(base::ScopedFile producer_socket_fd, 43 base::ScopedFile consumer_socket_fd) override;
|
D | service_ipc_host_impl.cc | 55 bool ServiceIPCHostImpl::Start(base::ScopedFile producer_socket_fd, in Start() 56 base::ScopedFile consumer_socket_fd) { in Start()
|
/external/perfetto/src/traced/service/ |
D | service.cc | 39 base::ScopedFile producer_fd(atoi(env_prod)); in ServiceMain() 40 base::ScopedFile consumer_fd(atoi(env_cons)); in ServiceMain()
|
/external/perfetto/src/tracing/test/ |
D | mock_consumer.h | 50 void EnableTracing(const TraceConfig&, base::ScopedFile = base::ScopedFile());
|
/external/perfetto/src/ipc/ |
D | client_impl.h | 50 base::ScopedFile TakeReceivedFD() override; 89 base::ScopedFile received_fd_;
|
D | host_impl.h | 40 HostImpl(base::ScopedFile socket_fd, base::TaskRunner*); 61 base::ScopedFile received_fd;
|