Home
last modified time | relevance | path

Searched refs:SharedRingBuffer (Results 1 – 15 of 15) sorted by relevance

/external/perfetto/src/profiling/memory/
Dshared_ring_buffer_unittest.cc32 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 …]
Dshared_ring_buffer.cc54 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 …]
Dshared_ring_buffer.h54 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 …]
Dshared_ring_buffer_fuzzer.cc45 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()
Dshared_ring_buffer_write_fuzzer.cc30 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()
Dwire_protocol_unittest.cc89 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()
Dunwinding.h143 SharedRingBuffer::Stats stats) = 0;
151 SharedRingBuffer shmem;
174 static void HandleBuffer(const SharedRingBuffer::Buffer& buf,
190 SharedRingBuffer shmem;
Dunwinding_fuzzer.cc35 SharedRingBuffer::Stats) override {} in PostSocketDisconnected()
39 SharedRingBuffer::Buffer buf(const_cast<uint8_t*>(data), size); in FuzzUnwinding()
Dclient.h89 SharedRingBuffer shmem,
118 SharedRingBuffer shmem_;
Dunwinding.cc254 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()
Dheapprofd_producer.h130 SharedRingBuffer::Stats) override;
136 SharedRingBuffer::Stats);
192 SharedRingBuffer shmem;
Dwire_protocol.cc48 bool SendWireMessage(SharedRingBuffer* shmem, const WireMessage& msg) { in SendWireMessage()
82 SharedRingBuffer::Buffer buf; in SendWireMessage()
Dclient.cc198 auto shmem = SharedRingBuffer::Attach(std::move(shmem_fd)); in CreateAndHandshake()
219 SharedRingBuffer shmem, in Client()
Dwire_protocol.h136 bool SendWireMessage(SharedRingBuffer* buf, const WireMessage& msg);
Dheapprofd_producer.cc735 auto shmem = SharedRingBuffer::Create(shmem_size); in HandleClientConnection()
778 SharedRingBuffer::Stats stats) { in PostSocketDisconnected()
865 SharedRingBuffer::Stats stats) { in HandleSocketDisconnected()