Home
last modified time | relevance | path

Searched refs:map_sz (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c68 long page_sz, map_sz; in test_hugemmap() local
71 map_sz = SAFE_READ_MEMINFO("Hugepagesize:") * 1024 * 2; in test_hugemmap()
83 while (range_is_mapped(low_addr, low_addr + map_sz) == 1) { in test_hugemmap()
95 while (range_is_mapped(low_addr2, low_addr2 + map_sz) == 1) { in test_hugemmap()
102 addr2 = mmap((void *)low_addr2, map_sz, PROT_READ | PROT_WRITE, in test_hugemmap()
128 if (munmap(addr2, map_sz) == -1) in test_hugemmap()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dmmap.c26 const size_t map_sz = roundup_page(sizeof(struct map_data)); in test_mmap() local
67 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
118 err = munmap(map_mmaped, map_sz); in test_mmap()
124 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap()
137 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap()
140 err = munmap(p, map_sz); in test_mmap()
152 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
155 munmap(tmp1, map_sz); in test_mmap()
179 munmap(tmp1, map_sz); in test_mmap()
216 CHECK_FAIL(munmap(map_mmaped, map_sz)); in test_mmap()
/external/bcc/tests/cc/
Dtest_c_api.cc356 const int map_sz = 4096; variable
357 void *map_addr = mmap(NULL, map_sz, PROT_READ | PROT_EXEC,
439 munmap(map_addr, map_sz);