Home
last modified time | relevance | path

Searched refs:page_size (Results 1 – 25 of 54) sorted by relevance

123

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_posix_test.cc62 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 …]
Dsanitizer_libc_test.cc221 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/
Dcoredump_many_segments.c59 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/
DdTLB_benchmark.c7 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/
Dsignal_segv_handler.cc23 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/
Dconnection.py283 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/
Dsys-info.cc65 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/
Dmemory_mapped_file_unittest.cc179 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/
Dqueue.py349 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/
Dia64-test-setjmp.c87 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/
Dsys_info_linux.cc24 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/
Dasan_poisoning.h54 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()
Dasan_poisoning.cc69 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/
Didletime.c23 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()
Dlibfio.c47 uintptr_t page_size = 0; variable
349 page_size = ps; in initialize_fio()
/external/libchrome/base/trace_event/
Dprocess_memory_dump.cc37 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()
Dprocess_memory_dump_unittest.cc162 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/
Degldisplay.c118 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/
Dtoken.c45 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/
Du_slab.c60 page = MALLOC(pool->page_size); in util_slab_add_new_page()
148 pool->page_size = sizeof(struct util_slab_page) + in util_slab_create()
Du_slab.h66 unsigned page_size; member
/external/libnl/lib/
Dnl.c404 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/
Dpcm.c344 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/
Dos-hpux.h82 ret *= pst.page_size; in os_phys_mem()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc198 uptr page_size = GetPageSizeCached(); in IsAccessibleMemoryRange() local
200 CHECK_LT(size, page_size * 10); in IsAccessibleMemoryRange()

123