Home
last modified time | relevance | path

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

12345

/external/perfetto/src/tracing/ipc/
Dmemfd.cc65 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()
Dposix_shared_memory.h54 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_;
Dposix_shared_memory.cc47 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/
Dscoped_file_unittest.cc66 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()
Dfile_utils.cc112 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/
Dunwind_support.h44 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);
Dprofiler_guardrails.h36 base::ScopedFile stat_fd);
48 explicit ProfilerCpuGuardrails(base::ScopedFile stat_fd);
60 explicit ProfilerMemoryGuardrails(base::ScopedFile status_fd);
Dprofiler_guardrails.cc36 base::ScopedFile stat_fd) { in GetCputimeSecForCurrentProcess()
51 ProfilerMemoryGuardrails::ProfilerMemoryGuardrails(base::ScopedFile status_fd) { in ProfilerMemoryGuardrails()
85 ProfilerCpuGuardrails::ProfilerCpuGuardrails(base::ScopedFile stat_fd) { in ProfilerCpuGuardrails()
Dunwind_support.cc46 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/
Dsys_stats_data_source.h50 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/
Dclient_api_benchmark.cc81 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()
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()
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()
Dwire_protocol_unittest.cc52 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()
Dshared_ring_buffer.h101 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/
Dservice.h49 base::ScopedFile TakeReceivedFD() { in TakeReceivedFD()
52 return base::ScopedFile(); in TakeReceivedFD()
68 base::ScopedFile* received_fd_;
/external/perfetto/src/profiling/perf/
Dproc_descriptors.cc42 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()
Dproc_descriptors.h36 base::ScopedFile maps_fd,
37 base::ScopedFile mem_fd) = 0;
75 base::ScopedFile(listening_raw_socket), this, task_runner, in AndroidRemoteDescriptorGetter()
Dunwinding.h94 base::ScopedFile maps_fd,
95 base::ScopedFile mem_fd);
165 base::ScopedFile maps_fd,
166 base::ScopedFile mem_fd);
Dunwinding.cc82 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()
Devent_reader.h105 base::ScopedFile perf_fd,
113 base::ScopedFile perf_fd_;
/external/perfetto/include/perfetto/ext/base/
Dtemp_file.h48 ScopedFile ReleaseFD();
55 ScopedFile fd_;
Dscoped_file.h97 using ScopedFile = ScopedResource<int, CloseFile, -1>; variable
113 using ScopedPlatformHandle = ScopedFile;
/external/perfetto/src/tracing/test/
Dmock_consumer.h51 void EnableTracing(const TraceConfig&, base::ScopedFile = base::ScopedFile());
/external/perfetto/src/traced/probes/ftrace/
Dftrace_procfs.cc57 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/
Dclient_impl.h55 base::ScopedFile TakeReceivedFD() override;
102 base::ScopedFile received_fd_;

12345