Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c170 SAFE_MUNMAP(file2 + st.st_size - pagesize, pagesize); in setup()
204 SAFE_MUNMAP(file1, st.st_size); in cleanup()
205 SAFE_MUNMAP(file2, st.st_size - pagesize); in cleanup()
206 SAFE_MUNMAP(file3, st.st_size); in cleanup()
207 SAFE_MUNMAP(shared_anon, MAP_SIZE); in cleanup()
Dmadvise01.c100 SAFE_MUNMAP(sfile, st.st_size); in cleanup()
101 SAFE_MUNMAP(amem, st.st_size); in cleanup()
Dmadvise06.c157 SAFE_MUNMAP(target, CHUNK_SZ); in test_advice_willneed()
178 SAFE_MUNMAP(target, CHUNK_SZ); in test_advice_willneed()
Dmadvise05.c44 SAFE_MUNMAP(p, ALLOC_SIZE); in verify_madvise()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c109 SAFE_MUNMAP(addr, TEST_PAGES * hpsz); in do_test()
126 SAFE_MUNMAP(addr, TEST_PAGES * hpsz); in do_test()
172 SAFE_MUNMAP(mem, size); in alloc_free_huge_on_node()
180 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/mprotect/
Dmprotect04.c128 SAFE_MUNMAP(cleanup, addr, page_sz); in testfunc_protnone()
279 SAFE_MUNMAP(cleanup, p, page_sz); in testfunc_protexec()
308 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/memfd_create/
Dmemfd_create03.c127 SAFE_MUNMAP(mem, hps); in test_def_pagesize()
165 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
170 SAFE_MUNMAP(mem, free_pages * hps); in test_max_hugepages()
Dmemfd_create01.c186 SAFE_MUNMAP(p, MFD_DEF_SIZE); in test_share_mmap()
192 SAFE_MUNMAP(p, MFD_DEF_SIZE); in test_share_mmap()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c86 SAFE_MUNMAP(mmaped_area, pagesize); in test_msync()
98 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.c107 SAFE_MUNMAP(tmp, file_size); in map_write_unmap()
192 SAFE_MUNMAP(distant_area, (size_t)DISTANT_MMAP_SIZE); in setup()
/external/ltp/testcases/kernel/security/integrity/ima/src/
Dima_mmap.c36 SAFE_MUNMAP(file, MMAPSIZE); in cleanup()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_wait04.c52 SAFE_MUNMAP(NULL, buf, pagesize); in verify_futex_wait()
/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages02.c177 SAFE_MUNMAP(private, getpagesize()); in test_migrate_current_process()
215 SAFE_MUNMAP(shared, getpagesize()); in test_migrate_current_process()
/external/ltp/testcases/cve/
Dcve-2017-17052.c53 SAFE_MUNMAP(do_exit, sizeof(*do_exit)); in cleanup()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork14.c137 SAFE_MUNMAP(cleanup, pointer_vec[j], 1 * GB); in fork_test()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite05.c112 SAFE_MUNMAP(bad_addr, 1); in cleanup()

12