Home
last modified time | relevance | path

Searched refs:PageHeader (Results 1 – 6 of 6) sorted by relevance

/external/google-breakpad/src/common/
Dmemory.h90 (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 { struct
152 PageHeader *next; // pointer to the start of the next set of pages. argument
157 PageHeader *last_; argument
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc45 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()
Dshared_memory_abi_unittest.cc112 (page_size() - sizeof(SharedMemoryABI::PageHeader)) / num_chunks; in TEST_P()
Dtrace_buffer.cc75 static_assert(sizeof(ChunkRecord) == sizeof(SharedMemoryABI::PageHeader) + in TraceBuffer()
/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h267 struct PageHeader { struct
445 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()
/external/perfetto/src/traced/probes/ftrace/
Dcpu_reader.cc55 struct PageHeader { struct
118 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()