Home
last modified time | relevance | path

Searched refs:BufferQueue (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_buffer_queue.cpp30 BufferQueue::ControlBlock *allocControlBlock(size_t Size, size_t Count) { in allocControlBlock()
32 allocateBuffer((sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in allocControlBlock()
34 : reinterpret_cast<BufferQueue::ControlBlock *>(B); in allocControlBlock()
37 void deallocControlBlock(BufferQueue::ControlBlock *C, size_t Size, in deallocControlBlock()
40 (sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in deallocControlBlock()
43 void decRefCount(BufferQueue::ControlBlock *C, size_t Size, size_t Count) { in decRefCount()
50 void incRefCount(BufferQueue::ControlBlock *C) { in incRefCount()
70 BufferQueue::ErrorCode BufferQueue::init(size_t BS, size_t BC) { in init()
74 return BufferQueue::ErrorCode::AlreadyInitialized; in init()
84 return BufferQueue::ErrorCode::NotEnoughMemory; in init()
[all …]
H A Dxray_profiling.cpp51 alignas(BufferQueue) static std::byte BufferQueueStorage[sizeof(BufferQueue)];
52 static BufferQueue *BQ = nullptr;
98 if (BQ->getBuffer(ThreadBuffers.NodeBuffer) != BufferQueue::ErrorCode::Ok) in getThreadLocalData()
105 if (BQ->getBuffer(ThreadBuffers.RootsBuffer) != BufferQueue::ErrorCode::Ok) in getThreadLocalData()
113 BufferQueue::ErrorCode::Ok) in getThreadLocalData()
121 BufferQueue::ErrorCode::Ok) in getThreadLocalData()
391 BufferQueue(profilingFlags()->per_thread_allocator_max, in profilingLoggingInit()
403 BQ = reinterpret_cast<BufferQueue *>(&BufferQueueStorage); in profilingLoggingInit()
409 if (InitStatus != BufferQueue::ErrorCode::Ok) { in profilingLoggingInit()
412 BufferQueue::getErrorString(InitStatus)); in profilingLoggingInit()
H A Dxray_fdr_logging.cpp55 BufferQueue::Buffer Buffer{};
56 BufferQueue *BQ = nullptr;
76 static std::byte BufferQueueStorage[sizeof(BufferQueue)];
77 static BufferQueue *BQ = nullptr;
219 static BufferQueue::const_iterator It{}; in fdrIterator()
220 static BufferQueue::const_iterator End{}; in fdrIterator()
356 BQ->apply([&](const BufferQueue::Buffer &B) { in fdrLoggingFlush()
464 TLD.BQ->releaseBuffer(TLD.Buffer) != BufferQueue::ErrorCode::Ok) in setupTLD()
468 if (TLD.BQ->getBuffer(TLD.Buffer) != BufferQueue::ErrorCode::Ok) in setupTLD()
663 BQ = reinterpret_cast<BufferQueue *>(&BufferQueueStorage); in fdrLoggingInit()
[all …]
H A Dxray_profile_collector.cpp60 BufferQueue *BQ;
74 alignas(BufferQueue) static std::byte BufferQueueStorage[sizeof(BufferQueue)];
75 static BufferQueue *BQ = nullptr;
76 static BufferQueue::Buffer Buffer;
105 void post(BufferQueue *Q, FunctionCallTrie &&T, in post()
341 BufferQueue(profilingFlags()->global_allocator_max, 1, Success); in reset()
344 BQ = reinterpret_cast<BufferQueue *>(&BufferQueueStorage); in reset()
349 BufferQueue::ErrorCode::Ok) in reset()
353 if (BQ->getBuffer(Buffer) != BufferQueue::ErrorCode::Ok) in reset()
H A Dxray_buffer_queue.h31 class BufferQueue {
61 friend class BufferQueue;
199 BufferQueue(size_t B, size_t N, bool &Success);
275 ~BufferQueue();
H A Dxray_fdr_controller.h26 BufferQueue *BQ;
27 BufferQueue::Buffer &B;
56 if (BQ->getBuffer(B) != BufferQueue::ErrorCode::Ok) in getNewBuffer()
142 return BQ->releaseBuffer(B) == BufferQueue::ErrorCode::Ok; in returnBuffer()
236 FDRController(BufferQueue *BQ, BufferQueue::Buffer &B, FDRLogWriter &W, in FDRController()
H A Dxray_fdr_log_writer.h78 BufferQueue::Buffer &Buffer;
92 explicit FDRLogWriter(BufferQueue::Buffer &B, char *P)
98 explicit FDRLogWriter(BufferQueue::Buffer &B)
H A Dxray_function_call_trie.h161 BufferQueue::Buffer NodeBuffer;
162 BufferQueue::Buffer RootsBuffer;
163 BufferQueue::Buffer ShadowStackBuffer;
164 BufferQueue::Buffer NodeIdPairBuffer;
H A Dxray_profile_collector.h39 void post(BufferQueue *Q, FunctionCallTrie &&T,