/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise10.c | 53 #define MAP_SIZE (16 * 1024) macro 55 static char pattern[MAP_SIZE]; 56 static char zero[MAP_SIZE]; 66 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 0, 70 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 1, 72 {MAP_SIZE, MADV_WIPEONFORK, MADV_KEEPONFORK, pattern, 0, 116 ptr = SAFE_MMAP(NULL, MAP_SIZE, in mem_map() 121 memcpy(ptr, pattern, MAP_SIZE); in mem_map() 158 SAFE_MUNMAP(addr, MAP_SIZE); in test_madvise() 165 for (i = 0; i < MAP_SIZE; i++) in setup()
|
D | madvise02.c | 47 #define MAP_SIZE (4 * 1024) macro 152 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup() 198 SAFE_MUNMAP(shared_anon, MAP_SIZE); in cleanup()
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | queue_stack_map.c | 11 const int MAP_SIZE = 32; in test_queue_stack_map_by_type() local 12 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() 19 for (i = 0; i < MAP_SIZE; i++) in test_queue_stack_map_by_type() 42 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 51 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 56 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type() 57 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 81 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 87 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
|
/external/angle/third_party/vulkan_memory_allocator/tools/VmaDumpVis/ |
D | VmaDumpVis.py | 32 MAP_SIZE = 24 variable 94 iImgSizeY += len(lDedicatedAllocations) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE) 98 iImgSizeY += len(lDefaultPoolBlocks) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE) 103 iImgSizeY += len(lBlocks) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE) 145 …draw.rectangle([IMG_MARGIN, y, IMG_MARGIN + iSizePixels, y + MAP_SIZE], fill=TypeToColor(tDedicate… 152 …draw.rectangle([IMG_MARGIN, y, IMG_MARGIN + iSizePixels, y + MAP_SIZE], fill=TypeToColor('FREE', 0… 163 …draw.rectangle([IMG_MARGIN + iX, y, IMG_MARGIN + iXEnd, y + MAP_SIZE], fill=TypeToColor(sType, iUs… 166 … draw.line([IMG_MARGIN + iX, y, IMG_MARGIN + iX, y + MAP_SIZE], fill=COLOR_OUTLINE_HARD) 168 … draw.line([IMG_MARGIN + iX, y, IMG_MARGIN + iX, y + MAP_SIZE], fill=COLOR_OUTLINE_HARD) 267 y += MAP_SIZE + IMG_MARGIN [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_maps.c | 528 const int MAP_SIZE = 32; in test_queuemap() local 529 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_queuemap() 533 for (i = 0; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap() 537 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 4, sizeof(val), MAP_SIZE, in test_queuemap() 541 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 0, sizeof(val), MAP_SIZE, in test_queuemap() 554 for (i = 0; i < MAP_SIZE; i++) in test_queuemap() 565 for (i = MAP_SIZE; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap() 569 for (i = MAP_SIZE/2; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap() 586 const int MAP_SIZE = 32; in test_stackmap() local 587 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_stackmap() [all …]
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | compaction_test.c | 21 #define MAP_SIZE 1048576 macro 196 map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in main() 203 munmap(map, MAP_SIZE); in main() 213 for (i = 0; i < MAP_SIZE; i += page_size) in main() 220 munmap(entry->map, MAP_SIZE); in main()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt_vsplit.c | 34 #define MAP_SIZE 256 macro 57 unsigned fetches[MAP_SIZE]; 58 ushort draws[MAP_SIZE]; 92 hash = fetch % MAP_SIZE; in vsplit_add_cache() 130 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_ubyte() 147 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_ushort() 172 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_uint()
|
/external/ltp/testcases/kernel/mem/tunable/ |
D | min_free_kbytes.c | 40 #define MAP_SIZE (1UL<<20) macro 169 addrs = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in eatup_mem() 178 memset(addrs, 1, MAP_SIZE); in eatup_mem()
|