Searched refs:PageHeader (Results 1 – 8 of 8) 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()130 struct PageHeader *header = reinterpret_cast<PageHeader*>(a); in GetNPages()141 PageHeader *next; in FreeAll()143 for (PageHeader *cur = last_; cur; cur = next) { in FreeAll()149 struct PageHeader { struct150 PageHeader *next; // pointer to the start of the next set of pages. argument155 PageHeader *last_; argument
45 return ((page_size - sizeof(SharedMemoryABI::PageHeader)) / divider) & ~3UL; in GetChunkSize()96 static_assert(sizeof(PageHeader) == 8, "PageHeader size"); in Initialize()151 size_t chunk_offset_in_page = sizeof(PageHeader) + chunk_idx * chunk_size; in GetChunkUnchecked()166 PageHeader* phdr = page_header(page_idx); in TryAcquireChunk()211 PageHeader* phdr = page_header(page_idx); in TryPartitionPage()246 PageHeader* phdr = page_header(page_idx); in ReleaseChunk()324 PERFETTO_DCHECK(offset >= sizeof(PageHeader)); in GetPageAndChunkIndex()326 PERFETTO_DCHECK((offset - sizeof(PageHeader)) % chunk.size() == 0); in GetPageAndChunkIndex()327 const size_t chunk_idx = (offset - sizeof(PageHeader)) / chunk.size(); in GetPageAndChunkIndex()
112 (page_size() - sizeof(SharedMemoryABI::PageHeader)) / num_chunks; in TEST_P()
78 static_assert(sizeof(ChunkRecord) == sizeof(SharedMemoryABI::PageHeader) + in TraceBuffer()
61 struct PageHeader { struct174 static base::Optional<CpuReader::PageHeader> ParsePageHeader(187 const PageHeader* page_header,
252 base::Optional<PageHeader> hdr = in ReadAndProcessBatch()390 base::Optional<PageHeader> page_header = in ProcessPagesForDataSource()442 base::Optional<CpuReader::PageHeader> CpuReader::ParsePageHeader( in ParsePageHeader()455 PageHeader page_header; in ParsePageHeader()486 const PageHeader* page_header, in ParsePagePayload()
326 CpuReader::PageHeader parsed = ret.value(); in TEST()341 CpuReader::PageHeader parsed = ret.value(); in TEST()391 base::Optional<CpuReader::PageHeader> page_header = in TEST()519 base::Optional<CpuReader::PageHeader> page_header = in TEST()568 base::Optional<CpuReader::PageHeader> page_header = in TEST()606 base::Optional<CpuReader::PageHeader> page_header = in TEST()671 base::Optional<CpuReader::PageHeader> page_header = in TEST()780 base::Optional<CpuReader::PageHeader> page_header = in TEST()830 base::Optional<CpuReader::PageHeader> page_header = in TEST()1400 base::Optional<CpuReader::PageHeader> page_header = in TEST()[all …]
276 struct PageHeader { struct466 PageHeader* page_header(size_t page_idx) { in page_header()467 return reinterpret_cast<PageHeader*>(page_start(page_idx)); in page_header()550 PageHeader* phdr = page_header(page_idx); in GetChunkState()