/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_posix_test.cc | 62 const int page_size = GetPageSize(); in TEST() local 63 uptr mem = (uptr)mmap(0, 3 * page_size, PROT_READ | PROT_WRITE, in TEST() 66 mprotect((void *)(mem + page_size), page_size, PROT_NONE); in TEST() 67 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size - 1)); in TEST() 68 EXPECT_TRUE(IsAccessibleMemoryRange(mem, page_size)); in TEST() 69 EXPECT_FALSE(IsAccessibleMemoryRange(mem, page_size + 1)); in TEST() 70 EXPECT_TRUE(IsAccessibleMemoryRange(mem + page_size - 1, 1)); in TEST() 71 EXPECT_FALSE(IsAccessibleMemoryRange(mem + page_size - 1, 2)); in TEST() 72 EXPECT_FALSE(IsAccessibleMemoryRange(mem + 2 * page_size - 1, 1)); in TEST() 73 EXPECT_TRUE(IsAccessibleMemoryRange(mem + 2 * page_size, page_size)); in TEST() [all …]
|
D | sanitizer_libc_test.cc | 221 uptr page_size = GetPageSizeCached(); in TEST() local 222 uptr res = internal_ftruncate(fd, page_size * 2); in TEST() 225 res = internal_lseek(fd, page_size, SEEK_SET); in TEST() 231 char *p = (char *)MapWritableFileToMemory(nullptr, page_size, fd, page_size); in TEST() 238 UnmapOrDie(p, page_size); in TEST()
|
/external/valgrind/none/tests/solaris/ |
D | coredump_many_segments.c | 59 range_t **ranges_tail, size_t page_size) in process_map() argument 77 head->start = (uintptr_t) page_size; // do not start at address '0' in process_map() 85 (map->pr_vaddr - tail->start < 3 * page_size)) { in process_map() 88 tail->start = map->pr_vaddr + map->pr_size + page_size; in process_map() 92 tail->end = map->pr_vaddr - page_size; in process_map() 101 new_one->start = map->pr_vaddr + map->pr_size + page_size; in process_map() 108 static range_t *read_proc_map(size_t page_size) in read_proc_map() argument 125 page_size) != 0) { in read_proc_map() 181 long page_size = sysconf(_SC_PAGESIZE); in main() local 182 if (page_size == -1) { in main() [all …]
|
/external/autotest/client/site_tests/hardware_PerfCounterVerification/src/ |
D | dTLB_benchmark.c | 7 long page_size; in main() local 9 page_size = sysconf(_SC_PAGESIZE); in main() 10 if (page_size == -1) { in main() 11 page_size = (1 << 12); // 4Kb in main() 23 char* dummy_ptr = (char*) malloc(page_size * sizeof(char)); // forcing fragmentation in main() 24 blocks[i] = (char*) malloc(page_size * sizeof(char)); in main()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | signal_segv_handler.cc | 23 unsigned long page_size; variable 27 mprotect(guard, page_size, PROT_READ | PROT_WRITE); in handler() 31 page_size = sysconf(_SC_PAGESIZE); in main() 38 guard = mmap(0, 3 * page_size, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0); in main() 39 guard = (char*)guard + page_size; // work around a kernel bug in main() 41 mprotect(guard, page_size, PROT_NONE); in main()
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/mturk/ |
D | connection.py | 283 page_size=10, page_number=1): argument 292 'PageSize': page_size, 303 def _get_pages(page_size, total_records): argument 308 pages = total_records / page_size + bool(total_records % page_size) 320 page_size = 100 321 search_rs = self.search_hits(page_size=page_size) 323 get_page_hits = lambda page: self.search_hits(page_size=page_size, page_number=page) 324 page_nums = self._get_pages(page_size, total_records) 329 page_size=10, page_number=1, response_groups=None): argument 340 'PageSize': page_size, [all …]
|
/external/v8/src/base/ |
D | sys-info.cc | 65 int pages, page_size; in AmountOfPhysicalMemory() 68 sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); in AmountOfPhysicalMemory() 69 if (pages == -1 || page_size == -1) { in AmountOfPhysicalMemory() 72 return static_cast<int64_t>(pages) * page_size; in AmountOfPhysicalMemory() 96 long page_size = sysconf(_SC_PAGESIZE); // NOLINT(runtime/int) in AmountOfPhysicalMemory() 97 if (pages == -1 || page_size == -1) { in AmountOfPhysicalMemory() 100 return static_cast<int64_t>(pages) * page_size; in AmountOfPhysicalMemory()
|
/external/google-breakpad/src/common/linux/ |
D | memory_mapped_file_unittest.cc | 179 const int page_size = 4096; in TEST_F() local 180 char data1[2 * page_size]; in TEST_F() 190 MemoryMappedFile mapped_file(test_file1.c_str(), page_size); in TEST_F() 193 EXPECT_EQ(data1_size - page_size, mapped_file.size()); in TEST_F() 196 memcmp(data1 + page_size, mapped_file.data(), data1_size - page_size)); in TEST_F() 200 mapped_file.Map(test_file1.c_str(), page_size); in TEST_F() 203 EXPECT_EQ(data1_size - page_size, mapped_file.size()); in TEST_F() 206 memcmp(data1 + page_size, mapped_file.data(), data1_size - page_size)); in TEST_F()
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sqs/ |
D | queue.py | 349 def clear(self, page_size=10, vtimeout=10): argument 353 def count(self, page_size=10, vtimeout=10): argument 362 def count_slow(self, page_size=10, vtimeout=10): argument 372 l = self.get_messages(page_size, vtimeout) 376 l = self.get_messages(page_size, vtimeout) 379 def dump(self, file_name, page_size=10, vtimeout=10, sep='\n'): argument 384 l = self.get_messages(page_size, vtimeout) 391 l = self.get_messages(page_size, vtimeout)
|
/external/libunwind/tests/ |
D | ia64-test-setjmp.c | 87 size_t page_size = getpagesize (); in doit() local 89 guard_page_addr = (bsp + page_size - 1) & -page_size; in doit() 92 ret = mmap ((void *) guard_page_addr, page_size, PROT_NONE, in doit()
|
/external/libchrome/base/ |
D | sys_info_linux.cc | 24 long page_size = sysconf(_SC_PAGESIZE); in AmountOfMemory() local 25 if (pages == -1 || page_size == -1) { in AmountOfMemory() 29 return static_cast<int64_t>(pages) * page_size; in AmountOfMemory()
|
/external/compiler-rt/lib/asan/ |
D | asan_poisoning.h | 54 uptr page_size = GetPageSizeCached(); in FastPoisonShadow() local 55 uptr page_beg = RoundUpTo(shadow_beg, page_size); in FastPoisonShadow() 56 uptr page_end = RoundDownTo(shadow_end, page_size); in FastPoisonShadow()
|
D | asan_poisoning.cc | 69 uptr page_size = GetPageSizeCached(); in FlushUnneededASanShadowMemory() local 70 uptr shadow_beg = RoundUpTo(MemToShadow(p), page_size); in FlushUnneededASanShadowMemory() 71 uptr shadow_end = RoundDownTo(MemToShadow(p + size), page_size); in FlushUnneededASanShadowMemory()
|
/external/fio/ |
D | idletime.c | 23 for (k=0; k < page_size; k++) { in calibrate_unit() 24 data[(k + j) % page_size] = k % 256; in calibrate_unit() 140 for (k = 0; k < page_size; k++) { in idle_prof_thread_fn() 141 ipt->data[(k + j) % page_size] = k % 256; in idle_prof_thread_fn() 152 ipt->loops = j + (double) k / page_size; in idle_prof_thread_fn() 212 ipc.buf = malloc(ipc.nr_cpus * page_size); in fio_idle_prof_init() 228 ipt->data = (unsigned char *)(ipc.buf + page_size * i); in fio_idle_prof_init()
|
D | libfio.c | 47 uintptr_t page_size = 0; variable 349 page_size = ps; in initialize_fio()
|
/external/libchrome/base/trace_event/ |
D | process_memory_dump.cc | 37 const size_t page_size = GetPageSize(); in CountResidentBytes() local 39 DCHECK_EQ(0u, start_pointer % page_size); in CountResidentBytes() 52 const size_t page_count = (chunk_size + page_size - 1) / page_size; in CountResidentBytes() 78 total_resident_size += resident_page_count * page_size; in CountResidentBytes()
|
D | process_memory_dump_unittest.cc | 162 const size_t page_size = base::GetPageSize(); in TEST() local 165 const size_t size1 = 5 * page_size; in TEST() 167 static_cast<char*>(base::AlignedAlloc(size1, page_size))); in TEST() 175 static_cast<char*>(base::AlignedAlloc(kVeryLargeMemorySize, page_size))); in TEST()
|
/external/mesa3d/src/egl/main/ |
D | egldisplay.c | 118 const long page_size = getpagesize(); in _eglPointerIsDereferencable() local 124 addr &= ~(page_size - 1); in _eglPointerIsDereferencable() 126 if (mincore((void *) addr, page_size, &valid) < 0) { in _eglPointerIsDereferencable()
|
/external/webp/src/enc/ |
D | token.c | 45 void VP8TBufferInit(VP8TBuffer* const b, int page_size) { in VP8TBufferInit() argument 50 b->page_size_ = (page_size < MIN_PAGE_SIZE) ? MIN_PAGE_SIZE : page_size; in VP8TBufferInit()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_slab.c | 60 page = MALLOC(pool->page_size); in util_slab_add_new_page() 148 pool->page_size = sizeof(struct util_slab_page) + in util_slab_create()
|
D | u_slab.h | 66 unsigned page_size; member
|
/external/libnl/lib/ |
D | nl.c | 404 static int page_size = 0; in nl_recv() local 420 if (page_size == 0) in nl_recv() 421 page_size = getpagesize(); in nl_recv() 423 iov.iov_len = page_size; in nl_recv()
|
/external/tinyalsa/ |
D | pcm.c | 344 int page_size = sysconf(_SC_PAGE_SIZE); in pcm_hw_mmap_status() local 345 pcm->mmap_status = mmap(NULL, page_size, PROT_READ, MAP_FILE | MAP_SHARED, in pcm_hw_mmap_status() 352 pcm->mmap_control = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in pcm_hw_mmap_status() 357 munmap(pcm->mmap_status, page_size); in pcm_hw_mmap_status() 390 int page_size = sysconf(_SC_PAGE_SIZE); in pcm_hw_munmap_status() local 392 munmap(pcm->mmap_status, page_size); in pcm_hw_munmap_status() 394 munmap(pcm->mmap_control, page_size); in pcm_hw_munmap_status()
|
/external/fio/os/ |
D | os-hpux.h | 82 ret *= pst.page_size; in os_phys_mem()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cc | 198 uptr page_size = GetPageSizeCached(); in IsAccessibleMemoryRange() local 200 CHECK_LT(size, page_size * 10); in IsAccessibleMemoryRange()
|