Searched refs:size_with_meta (Results 1 – 1 of 1) sorted by relevance
56 size_t size_with_meta = size + kMetaPageSize; in SharedRingBuffer() local80 int res = ftruncate(fd.get(), static_cast<off_t>(size_with_meta)); in SharedRingBuffer()142 auto size_with_meta = static_cast<size_t>(stat_buf.st_size); in Initialize() local143 auto size = size_with_meta - kMetaPageSize; in Initialize()147 if (size_with_meta < 2 * base::kPageSize || size % base::kPageSize || in Initialize()149 PERFETTO_ELOG("SharedRingBuffer size is invalid (%zu)", size_with_meta); in Initialize()164 void* reg1 = mmap(region, size_with_meta, PROT_READ | PROT_WRITE, in Initialize()169 void* reg2 = mmap(region + size_with_meta, size, PROT_READ | PROT_WRITE, in Initialize()173 if (reg1 != region || reg2 != region + size_with_meta) { in Initialize()