Searched refs:munmap (Results 1 - 25 of 146) sorted by relevance

123456

/linux-master/tools/testing/selftests/mm/
H A Dmkdirty.c77 munmap(mmap_mem, mmap_size);
103 goto munmap;
114 goto munmap;
118 munmap:
119 munmap(mem, pagesize);
144 goto munmap;
150 goto munmap;
154 munmap:
155 munmap(mmap_mem, mmap_size);
175 goto munmap;
[all...]
H A Dmlock2-tests.c200 munmap(map, 2 * page_size);
208 munmap(map, 2 * page_size);
213 munmap(map, 2 * page_size);
251 munmap(map, 2 * page_size);
259 munmap(map, 2 * page_size);
264 munmap(map, 2 * page_size);
280 munmap(map, 2 * page_size);
287 munmap(map, 2 * page_size);
301 munmap(map, 2 * page_size);
308 munmap(ma
[all...]
H A Dmremap_dontunmap.c58 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
121 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
123 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
154 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
173 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
175 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
220 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
222 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
271 BUG_ON(munmap(dest_mappin
[all...]
H A Dhugetlb-madvise.c105 if (munmap(addr, huge_page_size) ||
106 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size,
108 perror("munmap");
134 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
171 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
196 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
255 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
295 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
363 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
364 (void)munmap(addr
[all...]
H A Dcow.c181 if (munmap(mem, size) < 0)
336 if (munmap(mem, size) < 0) {
337 ksft_test_result_fail("munmap() failed\n");
729 goto munmap;
739 goto munmap;
744 munmap:
745 munmap(mem, pagesize);
792 goto munmap;
802 goto munmap;
822 goto munmap;
[all...]
H A Dmadv_populate.c48 munmap(addr, pagesize);
69 munmap(addr, SIZE);
90 munmap(addr, SIZE);
104 ret = munmap(addr + pagesize, pagesize);
106 ksft_exit_fail_msg("munmap failed\n");
132 munmap(addr, SIZE);
182 munmap(addr, SIZE);
204 munmap(addr, SIZE);
264 munmap(addr, SIZE);
H A Dhugepage-vmemmap.c127 munmap(addr, maplength);
135 munmap(addr, maplength);
140 /* munmap() length of MAP_HUGETLB memory must be hugepage aligned */
141 if (munmap(addr, maplength)) {
142 perror("munmap");
H A Dmremap_test.c90 munmap(remap_addr, size);
192 munmap(src_addr, c.region_size);
227 munmap(start + page_size, page_size);
231 munmap(start, page_size);
232 munmap(start + 2 * page_size, page_size);
237 munmap(start, 3 * page_size);
267 munmap(start + 2 * page_size, page_size);
271 munmap(start, 2 * page_size);
276 munmap(start, 3 * page_size);
349 if (munmap(pt
[all...]
H A Don-fault-limit.c27 munmap(map, 2 * lims.rlim_max);
H A Dmap_fixed_noreplace.c35 if (munmap(addr, size) != 0)
36 ksft_exit_fail_msg("Error: munmap failed\n");
66 if (munmap((void *)addr, 5 * page_size) != 0) {
68 ksft_exit_fail_msg("Error: munmap failed!?\n");
186 if (munmap((void *)addr, size) != 0) {
188 ksft_exit_fail_msg("Error: munmap failed!?\n");
H A Dsoft-dirty.c61 munmap(map, pagesize);
74 munmap(map2, pagesize);
174 munmap(map, pagesize);
H A Dvirtual_address_range.c140 munmap(ptr[i], MAP_CHUNK_SIZE);
143 munmap(hptr[i], MAP_CHUNK_SIZE);
H A Dhugetlb_fault_after_madv.c69 munmap(huge_ptr, MMAP_SIZE);
H A Dhugepage-mmap.c88 munmap(addr, LENGTH);
H A Dhugetlb_madv_vs_map.c120 munmap(huge_ptr, MMAP_SIZE);
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dhugetlb_vs_thp_test.c25 * munmap here before continuing. munmap() length of
28 if (munmap(addr, SIZE)) {
29 perror("munmap");
57 munmap(addr, SIZE);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dmmap.c57 munmap(tmp1, page_size);
140 err = munmap(map_mmaped, map_sz);
142 if (CHECK(err, "data_map_munmap", "data_map munmap failed: %d\n", errno))
168 err = munmap(p, map_sz);
183 munmap(tmp1, map_sz);
209 munmap(tmp0, 4 * page_size);
214 err = munmap(tmp1 + page_size, page_size);
216 munmap(tmp1, 4 * page_size);
224 munmap(tmp1, page_size);
225 munmap(tmp
[all...]
/linux-master/tools/testing/selftests/x86/
H A Dsysret_ss_attrs.c100 munmap(stack32, 4096);
H A Dtest_mremap_vdso.c44 munmap(dest_addr, size);
/linux-master/tools/testing/selftests/prctl/
H A Dset-anon-vma-name-test.c88 munmap(self->ptr_anon, AREA_SIZE);
89 munmap(self->ptr_not_anon, AREA_SIZE);
/linux-master/tools/testing/selftests/sgx/
H A Dload.c27 munmap((void *)encl->encl_base, encl->encl_size);
30 munmap(encl->bin, encl->bin_size);
37 munmap(heap_seg->src, heap_seg->size);
99 munmap((void *)secs->base, encl->encl_size);
209 munmap(ptr, PAGE_SIZE);
222 munmap(ptr, PAGE_SIZE);
332 munmap(area, encl->encl_base - (uint64_t)area);
333 munmap((void *)(encl->encl_base + encl_size),
/linux-master/tools/testing/selftests/mincore/
H A Dmincore_selftest.c73 munmap(addr, page_size);
125 munmap(addr, page_size);
173 munmap(addr, page_size);
279 munmap(addr, FILE_SIZE);
363 munmap(addr, FILE_SIZE);
/linux-master/tools/testing/selftests/powerpc/benchmarks/
H A Dmmap_bench.c50 munmap(c, MEMSIZE);
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-vmxcopy.c95 munmap(a, size);
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixmap.c116 munmap((u8 *)where - offset, (length + offset));

Completed in 274 milliseconds

123456