Home
last modified time | relevance | path

Searched refs:SharedRingBuffer (Results 1 – 18 of 18) 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.cc55 SharedRingBuffer::SharedRingBuffer(CreateFlag, size_t size) { in SharedRingBuffer() function in perfetto::profiling::SharedRingBuffer
98 SharedRingBuffer::~SharedRingBuffer() { in ~SharedRingBuffer()
122 void SharedRingBuffer::Initialize(base::ScopedFile mem_fd) { in Initialize()
184 SharedRingBuffer::Buffer SharedRingBuffer::BeginWrite( in BeginWrite()
233 void SharedRingBuffer::EndWrite(Buffer buf) { in EndWrite()
248 SharedRingBuffer::Buffer SharedRingBuffer::BeginRead() { in BeginRead()
291 void SharedRingBuffer::EndRead(Buffer buf) { in EndRead()
299 bool SharedRingBuffer::IsCorrupt(const PointerPositions& pos) { in IsCorrupt()
310 SharedRingBuffer::SharedRingBuffer(SharedRingBuffer&& other) noexcept { in SharedRingBuffer() function in perfetto::profiling::SharedRingBuffer
314 SharedRingBuffer& SharedRingBuffer::operator=( in operator =()
[all …]
Dshared_ring_buffer.h57 class SharedRingBuffer {
100 static base::Optional<SharedRingBuffer> Create(size_t);
101 static base::Optional<SharedRingBuffer> Attach(base::ScopedFile);
103 ~SharedRingBuffer();
104 SharedRingBuffer() = default;
106 SharedRingBuffer(SharedRingBuffer&&) noexcept;
107 SharedRingBuffer& operator=(SharedRingBuffer&&) noexcept;
212 SharedRingBuffer(const SharedRingBuffer&) = delete;
213 SharedRingBuffer& operator=(const SharedRingBuffer&) = delete;
214 SharedRingBuffer(CreateFlag, size_t size);
[all …]
Dclient_api_benchmark.cc60 auto ringbuf = SharedRingBuffer::Create(8 * 1048576); in ConstructClient()
81 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()
Dshared_ring_buffer_fuzzer.cc46 if (size <= sizeof(SharedRingBuffer::MetadataPage)) in FuzzRingBuffer()
55 size_t payload_size = size - sizeof(SharedRingBuffer::MetadataPage); in FuzzRingBuffer()
56 const uint8_t* payload = data + sizeof(SharedRingBuffer::MetadataPage); in FuzzRingBuffer()
65 SharedRingBuffer::MetadataPage header = {}; in FuzzRingBuffer()
76 auto buf = SharedRingBuffer::Attach(std::move(fd)); in FuzzRingBuffer()
Dwire_protocol.cc60 int64_t WithBuffer(SharedRingBuffer* shmem, size_t total_size, F fn) { in WithBuffer()
61 SharedRingBuffer::Buffer buf; in WithBuffer()
87 int64_t SendWireMessage(SharedRingBuffer* shmem, const WireMessage& msg) { in SendWireMessage()
93 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
107 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
117 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
Dshared_ring_buffer_write_fuzzer.cc31 SharedRingBuffer::MetadataPage metadata_page;
71 SharedRingBuffer::MetadataPage& metadata_page = header.metadata_page; in FuzzRingBufferWrite()
81 auto buf = SharedRingBuffer::Attach(std::move(fd)); in FuzzRingBufferWrite()
84 SharedRingBuffer::Buffer write_buf; in FuzzRingBufferWrite()
Dunwinding.h70 SharedRingBuffer::Stats stats) = 0;
79 SharedRingBuffer shmem;
110 SharedRingBuffer shmem;
119 const SharedRingBuffer::Buffer& buf,
Dclient_api_unittest.cc62 auto ringbuf = SharedRingBuffer::Create(8 * 1048576); in ConstructClient()
92 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in TEST()
114 auto ringbuf = SharedRingBuffer::Attach(base::ScopedFile(dup(g_shmem_fd))); in TEST()
Dheapprofd_producer.h140 SharedRingBuffer::Stats) override;
147 SharedRingBuffer::Stats);
189 SharedRingBuffer::ErrorState error_state =
190 SharedRingBuffer::ErrorState::kNoError;
248 SharedRingBuffer shmem;
Dwire_protocol_unittest.cc86 auto shmem_client = SharedRingBuffer::Create(kShmemSize); in TEST()
89 auto shmem_server = SharedRingBuffer::Attach(CopyFD(shmem_client->fd())); in TEST()
114 auto shmem_client = SharedRingBuffer::Create(kShmemSize); in TEST()
117 auto shmem_server = SharedRingBuffer::Attach(CopyFD(shmem_client->fd())); in TEST()
Dunwinding_fuzzer.cc40 SharedRingBuffer::Stats) override {} in PostSocketDisconnected()
44 SharedRingBuffer::Buffer buf(const_cast<uint8_t*>(data), size, 0u); in FuzzUnwinding()
Dclient.h100 SharedRingBuffer shmem,
133 SharedRingBuffer shmem_;
Dclient.cc240 auto shmem = SharedRingBuffer::Attach(std::move(shmem_fd)); in CreateAndHandshake()
255 SharedRingBuffer shmem, in Client()
374 shmem_.SetErrorState(SharedRingBuffer::kInvalidStackBounds); in RecordMalloc()
425 shmem_.SetErrorState(SharedRingBuffer::kHitTimeout); in SendWireMessageWithRetriesIfBlocking()
Dunwinding.cc213 SharedRingBuffer& shmem = client_data.shmem; in OnDisconnect()
220 SharedRingBuffer::Stats stats = {}; in OnDisconnect()
251 SharedRingBuffer& shmem = client_data->shmem; in ReadAndUnwindBatch()
252 SharedRingBuffer::Buffer buf; in ReadAndUnwindBatch()
319 const SharedRingBuffer::Buffer& buf, in HandleBuffer()
Dheapprofd_producer.cc120 ErrorStateToProto(SharedRingBuffer::ErrorState state) { in ErrorStateToProto()
122 case (SharedRingBuffer::kNoError): in ErrorStateToProto()
125 case (SharedRingBuffer::kHitTimeout): in ErrorStateToProto()
128 case (SharedRingBuffer::kInvalidStackBounds): in ErrorStateToProto()
723 SharedRingBuffer::kHitTimeout); in DumpProcessState()
968 auto shmem = SharedRingBuffer::Create(static_cast<size_t>(shmem_size)); in HandleClientConnection()
1030 SharedRingBuffer::Stats stats) { in PostSocketDisconnected()
1210 SharedRingBuffer::Stats stats) { in HandleSocketDisconnected()
Dwire_protocol.h166 int64_t SendWireMessage(SharedRingBuffer* buf, const WireMessage& msg);
/external/perfetto/docs/design-docs/
Dheapprofd-wire-protocol.md9 Restructure heapprofd to make use of the <code>[SharedRingBuffer](https://cs.android.com/android/pl…