/external/valgrind/memcheck/tests/ |
D | unit_libcbase.c | 80 unsigned long VKI_PAGE_SIZE = 1UL << 12; variable 82 unsigned long VKI_PAGE_SIZE = 1UL << 16; variable 186 CHECK( ! VG_IS_PAGE_ALIGNED(VKI_PAGE_SIZE-1) ); in test_VG_IS_XYZ_ALIGNED() 187 CHECK( VG_IS_PAGE_ALIGNED(VKI_PAGE_SIZE ) ); in test_VG_IS_XYZ_ALIGNED() 188 CHECK( ! VG_IS_PAGE_ALIGNED(VKI_PAGE_SIZE+1) ); in test_VG_IS_XYZ_ALIGNED() 270 CHECK( 0 == VG_PGROUNDDN(VKI_PAGE_SIZE-1) ); in test_VG_ROUND_et_al() 271 CHECK( VKI_PAGE_SIZE == VG_PGROUNDDN(VKI_PAGE_SIZE ) ); in test_VG_ROUND_et_al() 272 CHECK( VKI_PAGE_SIZE == VG_PGROUNDDN(VKI_PAGE_SIZE+1) ); in test_VG_ROUND_et_al() 275 CHECK( VKI_PAGE_SIZE == VG_PGROUNDUP(1) ); in test_VG_ROUND_et_al() 276 CHECK( VKI_PAGE_SIZE == VG_PGROUNDUP(2) ); in test_VG_ROUND_et_al() [all …]
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-x86-darwin.c | 329 stack-VKI_PAGE_SIZE, VKI_PAGE_SIZE, in pthread_hijack() 518 stack-VKI_PAGE_SIZE, VKI_PAGE_SIZE, in wqthread_hijack()
|
D | syswrap-amd64-darwin.c | 388 stack-VKI_PAGE_SIZE, VKI_PAGE_SIZE, in pthread_hijack() 570 stack-VKI_PAGE_SIZE, VKI_PAGE_SIZE, in wqthread_hijack()
|
D | syswrap-mips32-linux.c | 434 if ((VKI_SHMLBA > VKI_PAGE_SIZE) && (VKI_MAP_SHARED & arg4) in mips_PRE_sys_mmap() 436 mreq.len = arg2 + VKI_SHMLBA - VKI_PAGE_SIZE; in mips_PRE_sys_mmap() 441 if ((VKI_SHMLBA > VKI_PAGE_SIZE) && (VKI_MAP_SHARED & arg4) in mips_PRE_sys_mmap() 542 VKI_PAGE_SIZE * (Off64T) ARG6); in PRE()
|
/external/valgrind/include/ |
D | pub_tool_libcbase.h | 191 #define VG_IS_PAGE_ALIGNED(aaa_p) (0 == (((Addr)(aaa_p)) & ((Addr)(VKI_PAGE_SIZE-1)))) 197 #define VG_PGROUNDDN(p) VG_ROUNDDN(p, VKI_PAGE_SIZE) 198 #define VG_PGROUNDUP(p) VG_ROUNDUP(p, VKI_PAGE_SIZE)
|
/external/valgrind/coregrind/m_initimg/ |
D | initimg-solaris.c | 527 vg_assert(VG_STACK_REDZONE_SZB < VKI_PAGE_SIZE); in setup_client_stack() 529 vg_assert(resvn_size > VKI_PAGE_SIZE); in setup_client_stack() 530 resvn_size -= VKI_PAGE_SIZE; in setup_client_stack() 531 anon_start -= VKI_PAGE_SIZE; in setup_client_stack() 532 anon_size += VKI_PAGE_SIZE; in setup_client_stack() 645 auxv->a_un.a_val = VKI_PAGE_SIZE; in setup_client_stack()
|
D | initimg-linux.c | 522 vg_assert(VG_STACK_REDZONE_SZB < VKI_PAGE_SIZE); in setup_client_stack() 524 vg_assert(resvn_size > VKI_PAGE_SIZE); in setup_client_stack() 525 resvn_size -= VKI_PAGE_SIZE; in setup_client_stack() 526 anon_start -= VKI_PAGE_SIZE; in setup_client_stack() 527 anon_size += VKI_PAGE_SIZE; in setup_client_stack() 849 SizeT anon_size = VKI_PAGE_SIZE; in setup_client_dataseg()
|
/external/valgrind/include/vki/ |
D | vki-amd64-linux.h | 61 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 63 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 69 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-tilegx-linux.h | 62 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 64 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 70 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-s390x-linux.h | 63 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 963 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 969 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-x86-linux.h | 62 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 64 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 70 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-arm-linux.h | 66 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 68 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 74 #define VKI_SHMLBA (4 * VKI_PAGE_SIZE)
|
D | vki-mips32-linux.h | 76 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 77 #define VKI_PAGE_MASK (~(VKI_PAGE_SIZE-1)) 79 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE
|
D | vki-arm64-linux.h | 63 extern UWord VKI_PAGE_SIZE; 76 #define VKI_SHMLBA (4 * VKI_PAGE_SIZE)
|
D | vki-mips64-linux.h | 85 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 86 #define VKI_PAGE_MASK (~(VKI_PAGE_SIZE-1)) 88 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE
|
D | vki-ppc64-linux.h | 70 extern UWord VKI_PAGE_SIZE; 78 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-ppc32-linux.h | 67 extern UWord VKI_PAGE_SIZE; 75 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-solaris.h | 64 #define VKI_PAGE_SIZE (1UL << VKI_PAGE_SHIFT) macro 66 #define VKI_PAGEOFFSET (VKI_PAGE_SIZE - 1) 68 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 907 #define VKI_SHMLBA VKI_PAGE_SIZE
|
D | vki-darwin.h | 93 #define VKI_MAX_PAGE_SIZE VKI_PAGE_SIZE 359 #define VKI_PAGE_SIZE PAGE_SIZE macro
|
/external/valgrind/coregrind/m_ume/ |
D | elf.c | 239 bytes = bss & (VKI_PAGE_SIZE - 1); in mapelf() 243 bytes = VKI_PAGE_SIZE - bytes; in mapelf() 348 vg_assert(VKI_PAGE_SIZE >= 4096); /* stay sane */ in VG_() 349 ESZ(Addr) hacky_load_address = 0x100000 + 8 * VKI_PAGE_SIZE; in VG_()
|
/external/valgrind/memcheck/ |
D | mc_leakcheck.c | 860 && inner_addr >= (Addr)VKI_PAGE_SIZE in heuristic_reachedness() 864 && first_addr >= (Addr)VKI_PAGE_SIZE in heuristic_reachedness() 1098 lc_sig_skipped_szB += VKI_PAGE_SIZE; in lc_scan_memory() 1099 ptr = ptr + VKI_PAGE_SIZE; // Unaddressable, - skip it. in lc_scan_memory() 1120 if (UNLIKELY((ptr % VKI_PAGE_SIZE) == 0)) { in lc_scan_memory() 1122 ptr += VKI_PAGE_SIZE; // Bad page - skip it. in lc_scan_memory() 1771 tl_assert((VKI_PAGE_SIZE % sizeof(Addr)) == 0); in MC_() 1777 tl_assert((SM_SIZE % VKI_PAGE_SIZE) == 0); in MC_()
|
/external/valgrind/coregrind/ |
D | m_vki.c | 48 unsigned long VKI_PAGE_SIZE = 1UL << 12; variable
|
D | m_main.c | 561 2*VKI_PAGE_SIZE, 10*VG_DEFAULT_STACK_ACTIVE_SZB) in main_process_cmd_line_options() 1499 (Int)VKI_PAGE_SIZE, (Int)VKI_MAX_PAGE_SIZE in print_preamble() 1747 vg_assert(VKI_PAGE_SIZE == 4096 || VKI_PAGE_SIZE == 65536 in valgrind_main() 1748 || VKI_PAGE_SIZE == 16384); in valgrind_main() 1751 vg_assert(VKI_PAGE_SIZE <= VKI_MAX_PAGE_SIZE); in valgrind_main() 1752 vg_assert(VKI_PAGE_SIZE == (1 << VKI_PAGE_SHIFT)); in valgrind_main() 3336 VKI_PAGE_SIZE = sp[1]; in _start_in_C_linux() 3339 if (VKI_PAGE_SIZE == (1UL << VKI_PAGE_SHIFT)) in _start_in_C_linux()
|
/external/valgrind/massif/ |
D | ms_main.c | 1802 tl_assert(len >= VKI_PAGE_SIZE); in ms_record_page_mem() 1804 for (end = a + len - VKI_PAGE_SIZE; a < end; a += VKI_PAGE_SIZE) { in ms_record_page_mem() 1805 record_block( tid, (void*)a, VKI_PAGE_SIZE, /*slop_szB*/0, in ms_record_page_mem() 1809 record_block( tid, (void*)a, VKI_PAGE_SIZE, /*slop_szB*/0, in ms_record_page_mem() 1818 tl_assert(len >= VKI_PAGE_SIZE); in ms_unrecord_page_mem() 1819 for (end = a + len - VKI_PAGE_SIZE; a < end; a += VKI_PAGE_SIZE) { in ms_unrecord_page_mem()
|
/external/valgrind/coregrind/m_aspacemgr/ |
D | aspacemgr-linux.c | 1559 const Addr min = VKI_PAGE_SIZE; in VG_() 1746 + VKI_PAGE_SIZE; in VG_() 1786 init_resvn(&seg, aspacem_vStart, aspacem_vStart + VKI_PAGE_SIZE - 1); in VG_() 2664 aspacem_assert(VKI_SHMLBA >= VKI_PAGE_SIZE); in VG_() 2666 aspacem_assert(VKI_SHMLBA == VKI_PAGE_SIZE); in VG_() 2668 if ((VKI_SHMLBA > VKI_PAGE_SIZE) && (VKI_MAP_SHARED & flags)) { in VG_() 2670 req.len = length + VKI_SHMLBA - VKI_PAGE_SIZE; in VG_() 2677 if ((VKI_SHMLBA > VKI_PAGE_SIZE) && (VKI_MAP_SHARED & flags)) in VG_() 2991 if (delta + VKI_PAGE_SIZE in VG_() 3030 if (delta + VKI_PAGE_SIZE in VG_()
|