Home
last modified time | relevance | path

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

123

/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap19.c52 SAFE_MUNMAP(mm1, LEN); in run()
53 SAFE_MUNMAP(mm2, LEN); in run()
82 SAFE_MUNMAP(mm1, LEN); in cleanup()
85 SAFE_MUNMAP(mm2, LEN); in cleanup()
Dmmap16.c203 SAFE_MUNMAP(NULL, addr, page_size * 2); in do_child()
229 SAFE_MUNMAP(NULL, addr, 2 * page_size); in do_child()
/third_party/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()
Dmadvise05.c35 SAFE_MUNMAP(p, ALLOC_SIZE); in verify_madvise()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c161 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
192 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
199 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
245 SAFE_MUNMAP(mem, size); in alloc_free_huge_on_node()
253 SAFE_MUNMAP(mem, size); in alloc_free_huge_on_node()
/third_party/ltp/testcases/kernel/mem/thp/
Dthp04.c68 SAFE_MUNMAP(ret, thp_size); in alloc_zero_page()
157 SAFE_MUNMAP(read_thp, thp_size); in cleanup()
159 SAFE_MUNMAP(write_thp, thp_size); in cleanup()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile04.c59 SAFE_MUNMAP(protected_buffer, sizeof(*protected_buffer)); in run()
66 SAFE_MUNMAP(protected_buffer, sizeof(*protected_buffer)); in run()
/third_party/ltp/testcases/kernel/syscalls/mincore/
Dmincore03.c37 SAFE_MUNMAP(ptr, size); in cleanup()
73 SAFE_MUNMAP(ptr, size); in test_mincore()
Dmincore01.c117 SAFE_MUNMAP(cleanup, t, global_len); in setup2()
135 SAFE_MUNMAP(cleanup, global_pointer + global_len, global_len); in setup3()
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c117 SAFE_MUNMAP(mem, hps); in test_def_pagesize()
155 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
160 SAFE_MUNMAP(mem, free_pages * hps); in test_max_hugepages()
Dmemfd_create01.c177 SAFE_MUNMAP(p, MFD_DEF_SIZE); in test_share_mmap()
183 SAFE_MUNMAP(p, MFD_DEF_SIZE); in test_share_mmap()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c75 SAFE_MUNMAP(mmaped_area, pagesize); in test_msync()
87 SAFE_MUNMAP(mmaped_area, pagesize); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/mlock2/
Dmlock202.c94 SAFE_MUNMAP(unmapped_addr, pgsz * PAGES); in setup()
103 SAFE_MUNMAP(addr, pgsz); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev03.c80 SAFE_MUNMAP(map_ptr, BUF_SIZE); in thread_run()
126 SAFE_MUNMAP(map_ptr, BUF_SIZE); in cleanup()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/io_uring/
Dio_uring01.c234 SAFE_MUNMAP(s->sqes, sizeof(struct io_uring_sqe)); in cleanup_io_uring_test()
235 SAFE_MUNMAP(cptr, cptr_size); in cleanup_io_uring_test()
236 SAFE_MUNMAP(sptr, sptr_size); in cleanup_io_uring_test()
/third_party/ltp/testcases/kernel/mem/mtest06/
Dmmap1.c112 SAFE_MUNMAP(tmp, file_size); in map_write_unmap()
206 SAFE_MUNMAP(distant_area, distant_mmap_size); in setup()
/third_party/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c58 SAFE_MUNMAP(s, SIZE); in write_device()
88 SAFE_MUNMAP(s, SIZE); in verify_device()
/third_party/ltp/testcases/kernel/syscalls/clone/
Dclone03.c50 SAFE_MUNMAP(child_pid, sizeof(*child_pid)); in cleanup()
/third_party/ltp/testcases/kernel/security/integrity/ima/src/
Dima_mmap.c22 SAFE_MUNMAP(file, MMAPSIZE); in cleanup()
/third_party/ltp/include/
Dtst_numa.h70 SAFE_MUNMAP(ptr, size); in tst_numa_unmap()

123