Searched refs:SharedRingBuffer (Results 1 – 15 of 15) sorted by relevance
/external/perfetto/src/profiling/memory/ |
D | shared_ring_buffer_unittest.cc | 32 std::string ToString(const SharedRingBuffer::Buffer& buf_and_size) { in ToString() 37 bool TryWrite(SharedRingBuffer* wr, const char* src, size_t size) { in TryWrite() 38 SharedRingBuffer::Buffer buf; in TryWrite() 52 void StructuredTest(SharedRingBuffer* wr, SharedRingBuffer* rd) { in StructuredTest() 150 base::Optional<SharedRingBuffer> wr = SharedRingBuffer::Create(kBufSize); in TEST() 152 SharedRingBuffer rd = in TEST() 153 *SharedRingBuffer::Attach(base::ScopedFile(dup(wr->fd()))); in TEST() 161 base::Optional<SharedRingBuffer> rd = SharedRingBuffer::Create(kBufSize); in TEST() 163 SharedRingBuffer wr = in TEST() 164 *SharedRingBuffer::Attach(base::ScopedFile(dup(rd->fd()))); in TEST() [all …]
|
D | shared_ring_buffer.cc | 54 SharedRingBuffer::SharedRingBuffer(CreateFlag, size_t size) { in SharedRingBuffer() function in perfetto::profiling::SharedRingBuffer 97 SharedRingBuffer::~SharedRingBuffer() { in ~SharedRingBuffer() 109 void SharedRingBuffer::Initialize(base::ScopedFile mem_fd) { in Initialize() 171 SharedRingBuffer::Buffer SharedRingBuffer::BeginWrite( in BeginWrite() 214 void SharedRingBuffer::EndWrite(Buffer buf) { in EndWrite() 223 SharedRingBuffer::Buffer SharedRingBuffer::BeginRead() { in BeginRead() 268 void SharedRingBuffer::EndRead(Buffer buf) { in EndRead() 277 bool SharedRingBuffer::IsCorrupt(const PointerPositions& pos) { in IsCorrupt() 288 SharedRingBuffer::SharedRingBuffer(SharedRingBuffer&& other) noexcept { in SharedRingBuffer() function in perfetto::profiling::SharedRingBuffer 292 SharedRingBuffer& SharedRingBuffer::operator=(SharedRingBuffer&& other) { in operator =() [all …]
|
D | shared_ring_buffer.h | 54 class SharedRingBuffer { 87 static base::Optional<SharedRingBuffer> Create(size_t); 88 static base::Optional<SharedRingBuffer> Attach(base::ScopedFile); 90 ~SharedRingBuffer(); 91 SharedRingBuffer() = default; 93 SharedRingBuffer(SharedRingBuffer&&) noexcept; 94 SharedRingBuffer& operator=(SharedRingBuffer&&); 142 SharedRingBuffer(const SharedRingBuffer&) = delete; 143 SharedRingBuffer& operator=(const SharedRingBuffer&) = delete; 144 SharedRingBuffer(CreateFlag, size_t size); [all …]
|
D | shared_ring_buffer_fuzzer.cc | 45 if (size <= sizeof(SharedRingBuffer::MetadataPage)) in FuzzRingBuffer() 54 size_t payload_size = size - sizeof(SharedRingBuffer::MetadataPage); in FuzzRingBuffer() 55 const uint8_t* payload = data + sizeof(SharedRingBuffer::MetadataPage); in FuzzRingBuffer() 64 SharedRingBuffer::MetadataPage header = {}; in FuzzRingBuffer() 74 auto buf = SharedRingBuffer::Attach(std::move(fd)); in FuzzRingBuffer()
|
D | shared_ring_buffer_write_fuzzer.cc | 30 SharedRingBuffer::MetadataPage metadata_page; 70 SharedRingBuffer::MetadataPage& metadata_page = header.metadata_page; in FuzzRingBufferWrite() 80 auto buf = SharedRingBuffer::Attach(std::move(fd)); in FuzzRingBufferWrite() 83 SharedRingBuffer::Buffer write_buf; in FuzzRingBufferWrite()
|
D | wire_protocol_unittest.cc | 89 auto shmem_client = SharedRingBuffer::Create(kShmemSize); in TEST() 92 auto shmem_server = SharedRingBuffer::Attach(CopyFD(shmem_client->fd())); in TEST() 120 auto shmem_client = SharedRingBuffer::Create(kShmemSize); in TEST() 123 auto shmem_server = SharedRingBuffer::Attach(CopyFD(shmem_client->fd())); in TEST()
|
D | unwinding.h | 143 SharedRingBuffer::Stats stats) = 0; 151 SharedRingBuffer shmem; 174 static void HandleBuffer(const SharedRingBuffer::Buffer& buf, 190 SharedRingBuffer shmem;
|
D | unwinding_fuzzer.cc | 35 SharedRingBuffer::Stats) override {} in PostSocketDisconnected() 39 SharedRingBuffer::Buffer buf(const_cast<uint8_t*>(data), size); in FuzzUnwinding()
|
D | client.h | 89 SharedRingBuffer shmem, 118 SharedRingBuffer shmem_;
|
D | unwinding.cc | 254 SharedRingBuffer& shmem = client_data.shmem; in OnDisconnect() 266 SharedRingBuffer::Stats stats = {}; in OnDisconnect() 299 SharedRingBuffer& shmem = client_data.shmem; in HandleUnwindBatch() 300 SharedRingBuffer::Buffer buf; in HandleUnwindBatch() 336 void UnwindingWorker::HandleBuffer(const SharedRingBuffer::Buffer& buf, in HandleBuffer()
|
D | heapprofd_producer.h | 130 SharedRingBuffer::Stats) override; 136 SharedRingBuffer::Stats); 192 SharedRingBuffer shmem;
|
D | wire_protocol.cc | 48 bool SendWireMessage(SharedRingBuffer* shmem, const WireMessage& msg) { in SendWireMessage() 82 SharedRingBuffer::Buffer buf; in SendWireMessage()
|
D | client.cc | 198 auto shmem = SharedRingBuffer::Attach(std::move(shmem_fd)); in CreateAndHandshake() 219 SharedRingBuffer shmem, in Client()
|
D | wire_protocol.h | 136 bool SendWireMessage(SharedRingBuffer* buf, const WireMessage& msg);
|
D | heapprofd_producer.cc | 735 auto shmem = SharedRingBuffer::Create(shmem_size); in HandleClientConnection() 778 SharedRingBuffer::Stats stats) { in PostSocketDisconnected() 865 SharedRingBuffer::Stats stats) { in HandleSocketDisconnected()
|