Home
last modified time | relevance | path

Searched refs:SAFE_MUNMAP (Results 1 – 25 of 56) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c161 SAFE_MUNMAP(file2 + st.st_size - pagesize, pagesize); in setup()
195 SAFE_MUNMAP(file1, st.st_size); in cleanup()
196 SAFE_MUNMAP(file2, st.st_size - pagesize); in cleanup()
197 SAFE_MUNMAP(file3, st.st_size); in cleanup()
198 SAFE_MUNMAP(shared_anon, MAP_SIZE); in cleanup()
Dmadvise01.c91 SAFE_MUNMAP(sfile, st.st_size); in cleanup()
92 SAFE_MUNMAP(amem, st.st_size); in cleanup()
Dmadvise06.c144 SAFE_MUNMAP(target, CHUNK_SZ); in test_advice_willneed()
165 SAFE_MUNMAP(target, CHUNK_SZ); in test_advice_willneed()
Dmadvise05.c35 SAFE_MUNMAP(p, ALLOC_SIZE); in verify_madvise()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c150 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
181 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
188 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
234 SAFE_MUNMAP(mem, size); in alloc_free_huge_on_node()
242 SAFE_MUNMAP(mem, size); in alloc_free_huge_on_node()
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c122 SAFE_MUNMAP(cleanup, addr, len); in test_enomem1()
152 SAFE_MUNMAP(cleanup, addr, len); in test_enomem2()
181 SAFE_MUNMAP(cleanup, addr, len); in test_eperm()
Dmlock04.c76 SAFE_MUNMAP(cleanup, buf, file_len); in main()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c118 SAFE_MUNMAP(mem, hps); in test_def_pagesize()
156 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
161 SAFE_MUNMAP(mem, free_pages * hps); in test_max_hugepages()
Dmemfd_create01.c176 SAFE_MUNMAP(p, MFD_DEF_SIZE); in test_share_mmap()
182 SAFE_MUNMAP(p, MFD_DEF_SIZE); in test_share_mmap()
/external/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect04.c128 SAFE_MUNMAP(cleanup, addr, page_sz); in testfunc_protnone()
250 SAFE_MUNMAP(cleanup, p, page_sz); in testfunc_protexec()
279 SAFE_MUNMAP(cleanup, p, page_sz); in testfunc_protexec()
Dmprotect02.c142 SAFE_MUNMAP(cleanup, addr, sizeof(buf)); in main()
174 SAFE_MUNMAP(NULL, addr, sizeof(buf)); in cleanup()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c74 SAFE_MUNMAP(mmaped_area, pagesize); in test_msync()
86 SAFE_MUNMAP(mmaped_area, pagesize); in cleanup()
/external/ltp/testcases/kernel/syscalls/mlock2/
Dmlock202.c94 SAFE_MUNMAP(unmapped_addr, pgsz * PAGES); in setup()
103 SAFE_MUNMAP(addr, pgsz); in cleanup()
Dmlock203.c83 SAFE_MUNMAP(addr, pgsz); in cleanup()
/external/ltp/testcases/kernel/syscalls/remap_file_pages/
Dremap_file_pages02.c152 SAFE_MUNMAP(data, page_sz); in cleanup()
155 SAFE_MUNMAP(data01, page_sz); in cleanup()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap16.c203 SAFE_MUNMAP(NULL, addr, page_size * 2); in do_child()
229 SAFE_MUNMAP(NULL, addr, 2 * page_size); in do_child()
/external/ltp/testcases/kernel/syscalls/mincore/
Dmincore01.c117 SAFE_MUNMAP(cleanup, t, global_len); in setup2()
135 SAFE_MUNMAP(cleanup, global_pointer + global_len, global_len); in setup3()
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c104 SAFE_MUNMAP(cleanup, s, SIZE); in write_device()
135 SAFE_MUNMAP(cleanup, s, SIZE); in verify_device()
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap1.c121 SAFE_MUNMAP(tmp, file_size); in map_write_unmap()
206 SAFE_MUNMAP(distant_area, (size_t)DISTANT_MMAP_SIZE); in setup()
/external/ltp/include/
Dtst_numa.h72 SAFE_MUNMAP(ptr, size); in tst_numa_unmap()
/external/ltp/testcases/kernel/security/integrity/ima/src/
Dima_mmap.c27 SAFE_MUNMAP(file, MMAPSIZE); in cleanup()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_wait04.c52 SAFE_MUNMAP(NULL, buf, pagesize); in verify_futex_wait()
Dfutex_cmp_requeue02.c68 SAFE_MUNMAP((void *)futexes, sizeof(futex_t) * 2); in cleanup()
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit06.c49 SAFE_MUNMAP(end, sizeof(int)); in cleanup()
/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages02.c158 SAFE_MUNMAP(private, getpagesize()); in test_migrate_current_process()
196 SAFE_MUNMAP(shared, getpagesize()); in test_migrate_current_process()

123