Home
last modified time | relevance | path

Searched refs:ScopedFile (Results 1 – 25 of 68) sorted by relevance

123

/external/perfetto/src/base/
Dscoped_file_unittest.cc65 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()
Dunix_socket.cc130 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/
Dunix_socket.h60 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);
Dscoped_file.h85 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));
Dpipe.h40 ScopedFile rd;
41 ScopedFile wr;
Devent.h56 ScopedFile fd_;
60 ScopedFile write_fd_;
Dtemp_file.h46 ScopedFile ReleaseFD();
53 ScopedFile fd_;
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.h49 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/
Dposix_shared_memory.h42 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_;
Dposix_shared_memory.cc43 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/
Dunwinding.h44 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];
Dunwinding_unittest.cc37 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()
Dmain.cc45 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()
Dshared_ring_buffer.h88 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_;
Dwire_protocol_unittest.cc56 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()
Dclient.cc145 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/
Dservice.h49 base::ScopedFile TakeReceivedFD() { in TakeReceivedFD()
52 return base::ScopedFile(); in TakeReceivedFD()
68 base::ScopedFile* received_fd_;
/external/perfetto/src/traced/probes/ftrace/
Dftrace_procfs.cc55 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/
Dservice_ipc_host.h50 virtual bool Start(base::ScopedFile producer_socket_fd,
51 base::ScopedFile consumer_socket_fd) = 0;
/external/perfetto/src/tracing/ipc/service/
Dservice_ipc_host_impl.h42 bool Start(base::ScopedFile producer_socket_fd,
43 base::ScopedFile consumer_socket_fd) override;
Dservice_ipc_host_impl.cc55 bool ServiceIPCHostImpl::Start(base::ScopedFile producer_socket_fd, in Start()
56 base::ScopedFile consumer_socket_fd) { in Start()
/external/perfetto/src/traced/service/
Dservice.cc39 base::ScopedFile producer_fd(atoi(env_prod)); in ServiceMain()
40 base::ScopedFile consumer_fd(atoi(env_cons)); in ServiceMain()
/external/perfetto/src/tracing/test/
Dmock_consumer.h50 void EnableTracing(const TraceConfig&, base::ScopedFile = base::ScopedFile());
/external/perfetto/src/ipc/
Dclient_impl.h50 base::ScopedFile TakeReceivedFD() override;
89 base::ScopedFile received_fd_;
Dhost_impl.h40 HostImpl(base::ScopedFile socket_fd, base::TaskRunner*);
61 base::ScopedFile received_fd;

123