Home
last modified time | relevance | path

Searched refs:page_size_ (Results 1 – 13 of 13) sorted by relevance

/external/google-breakpad/src/common/
Dmemory.h64 : page_size_(getpagesize()), in PageAllocator()
78 if (current_page_ && page_size_ - page_offset_ >= bytes) { in Alloc()
81 if (page_offset_ == page_size_) { in Alloc()
90 (bytes + sizeof(PageHeader) + page_size_ - 1) / page_size_; in Alloc()
96 (page_size_ - (page_size_ * pages - (bytes + sizeof(PageHeader)))) % in Alloc()
97 page_size_; in Alloc()
98 current_page_ = page_offset_ ? ret + page_size_ * (pages - 1) : NULL; in Alloc()
108 if ((p >= current) && (p < current + header->num_pages * page_size_)) in OwnsPointer()
119 void *a = sys_mmap(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, in GetNPages()
122 void *a = sys_mmap2(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, in GetNPages()
[all …]
/external/v8/src/base/
Dregion-allocator.cc29 page_size_(page_size) { in RegionAllocator()
31 CHECK(base::bits::IsPowerOfTwo(page_size_)); in RegionAllocator()
32 CHECK(IsAligned(size(), page_size_)); in RegionAllocator()
33 CHECK(IsAligned(begin(), page_size_)); in RegionAllocator()
86 DCHECK(IsAligned(new_size, page_size_)); in Split()
126 DCHECK(IsAligned(size, page_size_)); in AllocateRegion()
134 DCHECK(IsAligned(region->begin(), page_size_)); in AllocateRegion()
151 size_t random_offset = page_size_ * (random % region_size_in_pages_); in AllocateRegion()
164 DCHECK(IsAligned(requested_address, page_size_)); in AllocateRegionAt()
166 DCHECK(IsAligned(size, page_size_)); in AllocateRegionAt()
[all …]
Dregion-allocator.h99 size_t page_size() const { return page_size_; } in page_size()
136 const size_t page_size_; variable
/external/webp/src/enc/
Dtoken_enc.c50 b->page_size_ = (page_size < MIN_PAGE_SIZE) ? MIN_PAGE_SIZE : page_size; in VP8TBufferInit()
62 VP8TBufferInit(b, b->page_size_); in VP8TBufferClear()
69 const size_t size = sizeof(*page) + b->page_size_ * sizeof(token_t); in TBufferNewPage()
80 b->left_ = b->page_size_; in TBufferNewPage()
207 int n = b->page_size_; in VP8EmitTokens()
233 int n = b->page_size_; in VP8EstimateTokenSize()
Dvp8i_enc.h319 int page_size_; // number of tokens per page member
/external/stressapptest/src/
Dfinelock_queue.cc42 page_size_ = pagesize; in FineLockPEQueue()
241 reinterpret_cast<char*>(os->PrepareTestMem(pe.offset, page_size_)); in ErrorLogCallback()
243 os->ReleaseTestMem(vaddr, pe.offset, page_size_); in ErrorLogCallback()
277 if ((page_addr <= paddr) && (page_addr + page_size_ > paddr)) { in GetPageFromPhysical()
424 int64 index = pe->offset / page_size_; in PutEmpty()
442 int64 index = pe->offset / page_size_; in PutValid()
Dfinelock_queue.h91 int64 page_size_; // For calculating array index from offset. variable
/external/perfetto/src/tracing/test/
Daligned_buffer_test.cc27 page_size_ = GetParam(); in SetUp()
28 buf_.reset(new TestSharedMemory(page_size_ * kNumPages)); in SetUp()
Daligned_buffer_test.h39 size_t page_size() const { return page_size_; } in page_size()
42 size_t page_size_ = 0;
/external/google-breakpad/src/client/linux/minidump_writer/
Dlinux_ptrace_dumper_unittest.cc181 size_t page_size_; member in LinuxPtraceDumperMappingsTest
194 page_size_ = sysconf(_SC_PAGESIZE); in SetUp()
195 const size_t kMappingSize = 3 * page_size_; in SetUp()
213 mmap(mapping + 2 * page_size_, in SetUp()
214 page_size_, in SetUp()
220 page_size_)); in SetUp()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.h1039 page_size_ = GetPageSizeCached(); in InitLinkerInitialized()
1051 if (alignment > page_size_) in Allocate()
1058 CHECK(IsAligned(map_beg, page_size_)); in Allocate()
1061 uptr res = map_beg + page_size_; in Allocate()
1065 CHECK(IsAligned(res, page_size_)); in Allocate()
1137 return RoundUpTo(GetHeader(p)->size, page_size_); in GetActuallyAllocatedSize()
1143 if (!IsAligned(reinterpret_cast<uptr>(p), page_size_)) { in GetMetaData()
1145 CHECK(IsAligned(reinterpret_cast<uptr>(p), page_size_)); in GetMetaData()
1255 CHECK(IsAligned(p, page_size_)); in GetHeader()
1256 return reinterpret_cast<Header*>(p - page_size_); in GetHeader()
[all …]
/external/perfetto/include/perfetto/ext/tracing/core/
Dshared_memory_abi.h443 size_t page_size() const { return page_size_; } in page_size()
449 return start_ + page_size_ * page_idx; in page_start()
581 size_t page_size_ = 0; variable
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc92 page_size_ = page_size; in Initialize()
321 const size_t page_idx = rel_addr / page_size_; in GetPageAndChunkIndex()
322 const size_t offset = rel_addr % page_size_; in GetPageAndChunkIndex()