Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise10.c62 #define MAP_SIZE (16 * 1024) macro
64 static char pattern[MAP_SIZE];
65 static char zero[MAP_SIZE];
75 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 0,
79 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 1,
81 {MAP_SIZE, MADV_WIPEONFORK, MADV_KEEPONFORK, pattern, 0,
125 ptr = SAFE_MMAP(NULL, MAP_SIZE, in mem_map()
130 memcpy(ptr, pattern, MAP_SIZE); in mem_map()
167 SAFE_MUNMAP(addr, MAP_SIZE); in test_madvise()
174 for (i = 0; i < MAP_SIZE; i++) in setup()
Dmadvise02.c56 #define MAP_SIZE (4 * 1024) macro
161 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup()
207 SAFE_MUNMAP(shared_anon, MAP_SIZE); in cleanup()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_maps.c477 const int MAP_SIZE = 32; in test_queuemap() local
478 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_queuemap()
482 for (i = 0; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap()
486 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 4, sizeof(val), MAP_SIZE, in test_queuemap()
490 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 0, sizeof(val), MAP_SIZE, in test_queuemap()
503 for (i = 0; i < MAP_SIZE; i++) in test_queuemap()
514 for (i = MAP_SIZE; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap()
518 for (i = MAP_SIZE/2; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap()
535 const int MAP_SIZE = 32; in test_stackmap() local
536 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_stackmap()
[all …]
Dtest_progs.c1745 const int MAP_SIZE = 32; in test_queue_stack_map() local
1746 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map()
1753 for (i = 0; i < MAP_SIZE; i++) in test_queue_stack_map()
1778 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map()
1789 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map()
1794 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map()
1795 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map()
1819 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map()
1825 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map()
/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/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/ltp/testcases/kernel/mem/tunable/
Dmin_free_kbytes.c39 #define MAP_SIZE (1UL<<20) macro
168 addrs = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in eatup_mem()
177 memset(addrs, 1, MAP_SIZE); in eatup_mem()