Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/vm/
Dthuge-gen.c46 #define NUM_PAGES 4 macro
149 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
153 memset(map, 0xff, size*NUM_PAGES); in test_mmap()
157 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_mmap()
170 id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); in test_shmget()
184 memset(map, 0xff, size*NUM_PAGES); in test_shmget()
189 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_shmget()
204 if (read_free(page_sizes[i]) < NUM_PAGES) { in sanity_checks()
207 NUM_PAGES); in sanity_checks()
212 if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) { in sanity_checks()
[all …]
/external/linux-kselftest/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c16 #define NUM_PAGES 4 macro
42 size = getpagesize() * NUM_PAGES; in main()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress04.c29 #define NUM_PAGES (192) macro
43 mmap_area = SAFE_MMAP(NULL, page_size * NUM_PAGES, PROT_NONE, in setup()