Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c67 long page_sz, map_sz; in test_hugemmap() local
70 map_sz = SAFE_READ_MEMINFO("Hugepagesize:") * 1024 * 2; in test_hugemmap()
82 while (range_is_mapped(low_addr, low_addr + map_sz) == 1) { in test_hugemmap()
94 while (range_is_mapped(low_addr2, low_addr2 + map_sz) == 1) { in test_hugemmap()
101 addr2 = mmap((void *)low_addr2, map_sz, PROT_READ | PROT_WRITE, in test_hugemmap()
127 if (munmap(addr2, map_sz) == -1) in test_hugemmap()
/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);