Searched refs:PageHeader (Results 1 – 6 of 6) sorted by relevance
90 (bytes + sizeof(PageHeader) + page_size_ - 1) / page_size_; in Alloc()96 (page_size_ - (page_size_ * pages - (bytes + sizeof(PageHeader)))) % in Alloc()100 return ret + sizeof(PageHeader); in Alloc()106 for (PageHeader* header = last_; header; header = header->next) { in OwnsPointer()134 struct PageHeader *header = reinterpret_cast<PageHeader*>(a); in GetNPages()143 PageHeader *next; in FreeAll()145 for (PageHeader *cur = last_; cur; cur = next) { in FreeAll()151 struct PageHeader { struct152 PageHeader *next; // pointer to the start of the next set of pages. argument157 PageHeader *last_; argument
45 return ((page_size - sizeof(SharedMemoryABI::PageHeader)) / divider) & ~3UL; in GetChunkSize()94 static_assert(sizeof(PageHeader) == 8, "PageHeader size"); in Initialize()149 size_t chunk_offset_in_page = sizeof(PageHeader) + chunk_idx * chunk_size; in GetChunkUnchecked()164 PageHeader* phdr = page_header(page_idx); in TryAcquireChunk()209 PageHeader* phdr = page_header(page_idx); in TryPartitionPage()244 PageHeader* phdr = page_header(page_idx); in ReleaseChunk()322 PERFETTO_DCHECK(offset >= sizeof(PageHeader)); in GetPageAndChunkIndex()324 PERFETTO_DCHECK((offset - sizeof(PageHeader)) % chunk.size() == 0); in GetPageAndChunkIndex()325 const size_t chunk_idx = (offset - sizeof(PageHeader)) / chunk.size(); in GetPageAndChunkIndex()
112 (page_size() - sizeof(SharedMemoryABI::PageHeader)) / num_chunks; in TEST_P()
75 static_assert(sizeof(ChunkRecord) == sizeof(SharedMemoryABI::PageHeader) + in TraceBuffer()
267 struct PageHeader { struct445 PageHeader* page_header(size_t page_idx) { in page_header()446 return reinterpret_cast<PageHeader*>(page_start(page_idx)); in page_header()527 PageHeader* phdr = page_header(page_idx); in GetChunkState()
55 struct PageHeader { struct118 base::Optional<PageHeader> ParsePageHeader(const uint8_t** ptr, in ParsePageHeader()121 PageHeader page_header; in ParsePageHeader()286 base::Optional<PageHeader> hdr = ParsePageHeader(&ptr, header_size_len); in RunWorkerThread()