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.cc46 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::Create(size_t size) { in Create()
76 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::AttachToFd( in AttachToFd()
106 std::unique_ptr<PosixSharedMemory> PosixSharedMemory::MapFD(base::ScopedFile fd, in MapFD()
113 return std::unique_ptr<PosixSharedMemory>( in MapFD()
114 new PosixSharedMemory(start, size, std::move(fd))); in MapFD()
117 PosixSharedMemory::PosixSharedMemory(void* start, in PosixSharedMemory() function in perfetto::PosixSharedMemory
122 PosixSharedMemory::~PosixSharedMemory() { in ~PosixSharedMemory()
126 PosixSharedMemory::Factory::~Factory() {} in ~Factory()
128 std::unique_ptr<SharedMemory> PosixSharedMemory::Factory::CreateSharedMemory( in CreateSharedMemory()
130 return PosixSharedMemory::Create(size); in CreateSharedMemory()
Dposix_shared_memory.h37 class PosixSharedMemory : public SharedMemory {
46 static std::unique_ptr<PosixSharedMemory> Create(size_t size);
53 static std::unique_ptr<PosixSharedMemory> AttachToFd(
57 ~PosixSharedMemory() override;
66 static std::unique_ptr<PosixSharedMemory> MapFD(base::ScopedFile, size_t);
68 PosixSharedMemory(void* start, size_t size, base::ScopedFile);
69 PosixSharedMemory(const PosixSharedMemory&) = delete;
70 PosixSharedMemory& operator=(const PosixSharedMemory&) = delete;
Dposix_shared_memory_unittest.cc48 PosixSharedMemory::Factory factory; in TEST()
65 std::unique_ptr<PosixSharedMemory> shm = in TEST()
66 PosixSharedMemory::Create(base::GetSysPageSize()); in TEST()
82 std::unique_ptr<PosixSharedMemory> shm = PosixSharedMemory::AttachToFd( in TEST()
103 std::unique_ptr<PosixSharedMemory> shm = in TEST()
104 PosixSharedMemory::AttachToFd(tmp_file.ReleaseFD()); in TEST()
118 std::unique_ptr<PosixSharedMemory> shm = in TEST()
119 PosixSharedMemory::Create(kLessThanAPage); in TEST()
129 std::unique_ptr<PosixSharedMemory> shm2 = in TEST()
130 PosixSharedMemory::AttachToFd(std::move(shm_fd2)); in TEST()
/external/perfetto/src/tracing/ipc/service/
Dservice_ipc_host_impl.cc70 new PosixSharedMemory::Factory()); in DoStart()
Dproducer_ipc_service.cc98 shmem = PosixSharedMemory::AttachToFd( in InitializeConnection()
460 static_cast<PosixSharedMemory*>(service_endpoint->shared_memory()) in SendSetupTracing()
/external/perfetto/src/tracing/ipc/producer/
Dproducer_ipc_client_impl.cc162 shm_fd = static_cast<PosixSharedMemory*>(shared_memory_.get())->fd(); in OnConnect()
265 PosixSharedMemory::AttachToFd(std::move(shmem_fd), in OnServiceRequest()
/external/perfetto/test/
Dtest_helper.h173 PosixSharedMemory::Factory factory; in CreateProducerProvidedSmb()