Home
last modified time | relevance | path

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

/tools/testing/selftests/vm/
Dthuge-gen.c45 #define NUM_PAGES 4 macro
148 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
152 memset(map, 0xff, size*NUM_PAGES); in test_mmap()
156 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_mmap()
169 id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); in test_shmget()
183 memset(map, 0xff, size*NUM_PAGES); in test_shmget()
188 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_shmget()
203 if (read_free(page_sizes[i]) < NUM_PAGES) { in sanity_checks()
206 NUM_PAGES); in sanity_checks()
211 if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) { in sanity_checks()
[all …]