Home
last modified time | relevance | path

Searched refs:MAP_SIZE (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise10.c53 #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()
Dmadvise02.c47 #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/
Dqueue_stack_map.c11 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/
DVmaDumpVis.py32 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/
Dtest_maps.c528 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/
Dcompaction_test.c21 #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/
Ddraw_pt_vsplit.c34 #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/
Dmin_free_kbytes.c40 #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()