Home
last modified time | relevance | path

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

/external/google-breakpad/src/common/
Dmemory_allocator.h63 : 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()
127 __msan_unpoison(a, page_size_ * num_pages); in GetNPages()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator_secondary.h76 page_size_ = GetPageSizeCached(); in InitLinkerInitialized()
88 if (alignment > page_size_) in Allocate()
101 CHECK(IsAligned(map_beg, page_size_)); in Allocate()
104 uptr res = map_beg + page_size_; in Allocate()
108 CHECK(IsAligned(res, page_size_)); in Allocate()
169 return RoundUpTo(GetHeader(p)->size, page_size_); in GetActuallyAllocatedSize()
175 if (!IsAligned(reinterpret_cast<uptr>(p), page_size_)) { in GetMetaData()
177 CHECK(IsAligned(reinterpret_cast<uptr>(p), page_size_)); in GetMetaData()
301 CHECK(IsAligned(p, page_size_)); in GetHeader()
302 return reinterpret_cast<Header*>(p - page_size_); in GetHeader()
[all …]
/external/libbrillo/brillo/
Dsecure_allocator.h197 size_type page_aligned_remainder = real_size % page_size_; in CalculatePageAlignedBufferSize()
199 page_aligned_remainder != 0 ? page_size_ - page_aligned_remainder : 0; in CalculatePageAlignedBufferSize()
224 static const size_type page_size_; variable
232 const typename SecureAllocator<T>::size_type SecureAllocator<T>::page_size_ =
237 SecureAllocator<T>::GetMaxSizeForType(SecureAllocator<T>::page_size_);
/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.cc245 size_t page_size_; member in LinuxPtraceDumperMappingsTest
258 page_size_ = sysconf(_SC_PAGESIZE); in SetUp()
259 const size_t kMappingSize = 3 * page_size_; in SetUp()
277 mmap(mapping + 2 * page_size_, in SetUp()
278 page_size_, in SetUp()
284 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.h457 size_t page_size() const { return page_size_; } in page_size()
463 return start_ + page_size_ * page_idx; in page_start()
597 size_t page_size_ = 0; variable
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc93 page_size_ = page_size; in Initialize()
322 const size_t page_idx = rel_addr / page_size_; in GetPageAndChunkIndex()
323 const size_t offset = rel_addr % page_size_; in GetPageAndChunkIndex()
/external/libabigail/tests/data/test-annotate/
Dtest15-pr18892.so.abi4448 …!-- __sanitizer::uptr __sanitizer::LargeMmapAllocator<__sanitizer::CrashOnMapUnmap>::page_size_ -->
4449 …<var-decl name='page_size_' type-id='type-id-106' visibility='default' filepath='../../.././libsan…
32142 …!-- __sanitizer::uptr __sanitizer::LargeMmapAllocator<__sanitizer::CrashOnMapUnmap>::page_size_ -->
32143 …<var-decl name='page_size_' type-id='type-id-106' visibility='default' filepath='../../.././libsan…
32242 … <!-- __sanitizer::uptr __sanitizer::LargeMmapAllocator<__tsan::MapUnmapCallback>::page_size_ -->
32243 …<var-decl name='page_size_' type-id='type-id-106' visibility='default' filepath='../../.././libsan…
/external/libabigail/tests/data/test-read-dwarf/
Dtest15-pr18892.so.abi2434 …<var-decl name='page_size_' type-id='type-id-106' visibility='default' filepath='../../.././libsan…
19065 …<var-decl name='page_size_' type-id='type-id-106' visibility='default' filepath='../../.././libsan…
19140 …<var-decl name='page_size_' type-id='type-id-106' visibility='default' filepath='../../.././libsan…