/external/perfetto/src/tracing/ipc/ |
D | memfd.cc | 65 base::ScopedFile fd; in HasMemfdSupport() 73 base::ScopedFile CreateMemfd(const char* name, unsigned int flags) { in CreateMemfd() 76 return base::ScopedFile(); in CreateMemfd() 78 return base::ScopedFile( in CreateMemfd() 89 base::ScopedFile CreateMemfd(const char*, unsigned int) { in CreateMemfd() 91 return base::ScopedFile(); in CreateMemfd()
|
D | posix_shared_memory.h | 54 base::ScopedFile, 66 static std::unique_ptr<PosixSharedMemory> MapFD(base::ScopedFile, size_t); 68 PosixSharedMemory(void* start, size_t size, base::ScopedFile); 74 base::ScopedFile fd_;
|
D | posix_shared_memory.cc | 47 base::ScopedFile fd = in Create() 77 base::ScopedFile fd, in AttachToFd() 106 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::MapFD(base::ScopedFile fd, in MapFD() 119 base::ScopedFile fd) in PosixSharedMemory()
|
/external/perfetto/src/base/ |
D | scoped_file_unittest.cc | 66 ScopedFile scoped_file(raw_fd); in TEST() 94 ScopedFile scoped_file(raw_fd1); in TEST() 114 ScopedFile scoped_file(raw_fd); in TEST() 127 ScopedFile scoped_file1(ScopedFile{raw_fd1}); in TEST() 128 ScopedFile scoped_file2(std::move(scoped_file1)); in TEST() 149 ScopedFile scoped_file1(raw_fd1); in TEST() 150 ScopedFile scoped_file2(raw_fd2); in TEST() 176 ScopedFile scoped_file(raw_fd); in TEST()
|
D | file_utils.cc | 112 base::ScopedFile fd = base::OpenFile(path, O_RDONLY); in ReadFile() 181 ScopedFile OpenFile(const std::string& path, int flags, FileOpenMode mode) { in OpenFile() 185 ScopedFile fd(_open(path.c_str(), flags | O_BINARY, mode)); in OpenFile() 188 ScopedFile fd(open(path.c_str(), flags | O_CLOEXEC, mode)); in OpenFile()
|
/external/perfetto/src/profiling/common/ |
D | unwind_support.h | 44 explicit FDMaps(base::ScopedFile fd); 64 base::ScopedFile fd_; 69 explicit FDMemory(base::ScopedFile mem_fd); 73 base::ScopedFile mem_fd_; 95 UnwindingMetadata(base::ScopedFile maps_fd, base::ScopedFile mem_fd);
|
D | profiler_guardrails.h | 36 base::ScopedFile stat_fd); 48 explicit ProfilerCpuGuardrails(base::ScopedFile stat_fd); 60 explicit ProfilerMemoryGuardrails(base::ScopedFile status_fd);
|
D | profiler_guardrails.cc | 36 base::ScopedFile stat_fd) { in GetCputimeSecForCurrentProcess() 51 ProfilerMemoryGuardrails::ProfilerMemoryGuardrails(base::ScopedFile status_fd) { in ProfilerMemoryGuardrails() 85 ProfilerCpuGuardrails::ProfilerCpuGuardrails(base::ScopedFile stat_fd) { in ProfilerCpuGuardrails()
|
D | unwind_support.cc | 46 FDMemory::FDMemory(base::ScopedFile mem_fd) : mem_fd_(std::move(mem_fd)) {} in FDMemory() 58 FDMaps::FDMaps(base::ScopedFile fd) : fd_(std::move(fd)) {} in FDMaps() 99 UnwindingMetadata::UnwindingMetadata(base::ScopedFile maps_fd, in UnwindingMetadata() 100 base::ScopedFile mem_fd) in UnwindingMetadata()
|
/external/perfetto/src/traced/probes/sys_stats/ |
D | sys_stats_data_source.h | 50 using OpenFunction = base::ScopedFile (*)(const char*); 87 size_t ReadFile(base::ScopedFile*, const char* path); 91 base::ScopedFile meminfo_fd_; 92 base::ScopedFile vmstat_fd_; 93 base::ScopedFile stat_fd_;
|
/external/perfetto/src/profiling/memory/ |
D | client_api_benchmark.cc | 81 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiOneTenthAllocation() 102 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiOneHundrethAllocation() 123 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiAlmostNoAllocation() 144 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiSample() 165 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiDisabledHeapAllocation() 186 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiDisabledHeapFree() 207 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in BM_ClientApiEnabledHeapFree()
|
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() 139 base::ScopedFile proc_maps(base::OpenFile("/proc/self/maps", O_RDONLY)); in TEST() 140 base::ScopedFile proc_mem(base::OpenFile("/proc/self/mem", O_RDONLY)); in TEST() 159 base::ScopedFile proc_maps(base::OpenFile("/proc/self/maps", O_RDONLY)); in TEST() 160 base::ScopedFile proc_mem(base::OpenFile("/proc/self/mem", O_RDONLY)); in TEST()
|
D | wire_protocol_unittest.cc | 52 base::ScopedFile CopyFD(int fd) { in CopyFD() 55 base::UnixSocketRaw send_sock(base::ScopedFile(sv[0]), in CopyFD() 58 base::UnixSocketRaw recv_sock(base::ScopedFile(sv[1]), in CopyFD() 63 base::ScopedFile res; in CopyFD()
|
D | shared_ring_buffer.h | 101 static base::Optional<SharedRingBuffer> Attach(base::ScopedFile); 215 SharedRingBuffer(AttachFlag, base::ScopedFile mem_fd) { in SharedRingBuffer() 219 void Initialize(base::ScopedFile mem_fd); 258 base::ScopedFile mem_fd_;
|
/external/perfetto/include/perfetto/ext/ipc/ |
D | service.h | 49 base::ScopedFile TakeReceivedFD() { in TakeReceivedFD() 52 return base::ScopedFile(); in TakeReceivedFD() 68 base::ScopedFile* received_fd_;
|
/external/perfetto/src/profiling/perf/ |
D | proc_descriptors.cc | 42 base::ScopedFile(open(dir_buf, O_DIRECTORY | O_RDONLY | O_CLOEXEC)); in GetDescriptorsForPid() 57 base::ScopedFile{openat(dir_fd.get(), "maps", O_RDONLY | O_CLOEXEC)}; in GetDescriptorsForPid() 66 base::ScopedFile{openat(dir_fd.get(), "mem", O_RDONLY | O_CLOEXEC)}; in GetDescriptorsForPid() 128 base::ScopedFile fds[2]; in OnDataAvailable()
|
D | proc_descriptors.h | 36 base::ScopedFile maps_fd, 37 base::ScopedFile mem_fd) = 0; 75 base::ScopedFile(listening_raw_socket), this, task_runner, in AndroidRemoteDescriptorGetter()
|
D | unwinding.h | 94 base::ScopedFile maps_fd, 95 base::ScopedFile mem_fd); 165 base::ScopedFile maps_fd, 166 base::ScopedFile mem_fd);
|
D | unwinding.cc | 82 base::ScopedFile maps_fd, in PostAdoptProcDescriptors() 83 base::ScopedFile mem_fd) { in PostAdoptProcDescriptors() 84 auto shared_maps = std::make_shared<base::ScopedFile>(std::move(maps_fd)); in PostAdoptProcDescriptors() 85 auto shared_mem = std::make_shared<base::ScopedFile>(std::move(mem_fd)); in PostAdoptProcDescriptors() 87 base::ScopedFile maps = std::move(*shared_maps.get()); in PostAdoptProcDescriptors() 88 base::ScopedFile mem = std::move(*shared_mem.get()); in PostAdoptProcDescriptors() 95 base::ScopedFile maps_fd, in AdoptProcDescriptors() 96 base::ScopedFile mem_fd) { in AdoptProcDescriptors()
|
D | event_reader.h | 105 base::ScopedFile perf_fd, 113 base::ScopedFile perf_fd_;
|
/external/perfetto/include/perfetto/ext/base/ |
D | temp_file.h | 48 ScopedFile ReleaseFD(); 55 ScopedFile fd_;
|
D | scoped_file.h | 97 using ScopedFile = ScopedResource<int, CloseFile, -1>; variable 113 using ScopedPlatformHandle = ScopedFile;
|
/external/perfetto/src/tracing/test/ |
D | mock_consumer.h | 51 void EnableTracing(const TraceConfig&, base::ScopedFile = base::ScopedFile());
|
/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_procfs.cc | 57 base::ScopedFile fd = base::OpenFile(path, flags); in WriteFileInternal() 302 base::ScopedFile FtraceProcfs::OpenPipeForCpu(size_t cpu) { in OpenPipeForCpu() 309 base::ScopedFile fd = base::OpenFile(path, O_RDONLY); in ReadOneCharFromFile() 318 base::ScopedFile fd = base::OpenFile(path, O_WRONLY | O_TRUNC); in ClearFile() 378 base::ScopedFile fd = base::OpenFile(root + "trace", O_RDONLY); in CheckRootPath()
|
/external/perfetto/src/ipc/ |
D | client_impl.h | 55 base::ScopedFile TakeReceivedFD() override; 102 base::ScopedFile received_fd_;
|