Home
last modified time | relevance | path

Searched refs:PosixSharedMemory (Results 1 – 7 of 7) sorted by relevance

/external/perfetto/src/tracing/ipc/
Dposix_shared_memory.cc42 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::Create(size_t size) { in Create()
72 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::AttachToFd( in AttachToFd()
81 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::MapFD(base::ScopedFile fd, in MapFD()
88 return std::unique_ptr<PosixSharedMemory>( in MapFD()
89 new PosixSharedMemory(start, size, std::move(fd))); in MapFD()
92 PosixSharedMemory::PosixSharedMemory(void* start, in PosixSharedMemory() function in perfetto::PosixSharedMemory
97 PosixSharedMemory::~PosixSharedMemory() { in ~PosixSharedMemory()
101 PosixSharedMemory::Factory::~Factory() {} in ~Factory()
103 std::unique_ptr<SharedMemory> PosixSharedMemory::Factory::CreateSharedMemory( in CreateSharedMemory()
105 return PosixSharedMemory::Create(size); in CreateSharedMemory()
Dposix_shared_memory.h30 class PosixSharedMemory : public SharedMemory {
39 static std::unique_ptr<PosixSharedMemory> Create(size_t size);
42 static std::unique_ptr<PosixSharedMemory> AttachToFd(base::ScopedFile);
44 ~PosixSharedMemory() override;
53 static std::unique_ptr<PosixSharedMemory> MapFD(base::ScopedFile, size_t);
55 PosixSharedMemory(void* start, size_t size, base::ScopedFile);
56 PosixSharedMemory(const PosixSharedMemory&) = delete;
57 PosixSharedMemory& operator=(const PosixSharedMemory&) = delete;
Dposix_shared_memory_unittest.cc43 PosixSharedMemory::Factory factory; in TEST()
59 std::unique_ptr<PosixSharedMemory> shm = in TEST()
60 PosixSharedMemory::Create(base::kPageSize); in TEST()
75 std::unique_ptr<PosixSharedMemory> shm = in TEST()
76 PosixSharedMemory::AttachToFd(tmp_file.ReleaseFD()); in TEST()
/external/perfetto/src/tracing/ipc/producer/
Dproducer_ipc_client_impl.h45 class PosixSharedMemory; variable
106 std::unique_ptr<PosixSharedMemory> shared_memory_;
Dproducer_ipc_client_impl.cc170 shared_memory_ = PosixSharedMemory::AttachToFd(std::move(shmem_fd)); in OnServiceRequest()
/external/perfetto/src/tracing/ipc/service/
Dservice_ipc_host_impl.cc70 new PosixSharedMemory::Factory()); in DoStart()
Dproducer_ipc_service.cc387 static_cast<PosixSharedMemory*>(service_endpoint->shared_memory())->fd(); in OnTracingSetup()