NUM_PAGES 49 tools/testing/selftests/drivers/dma-buf/udmabuf.c size = getpagesize() * NUM_PAGES; NUM_PAGES 149 tools/testing/selftests/vm/thuge-gen.c map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, NUM_PAGES 153 tools/testing/selftests/vm/thuge-gen.c memset(map, 0xff, size*NUM_PAGES); NUM_PAGES 157 tools/testing/selftests/vm/thuge-gen.c assert(size == getpagesize() || (before - after) == NUM_PAGES); NUM_PAGES 170 tools/testing/selftests/vm/thuge-gen.c id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); NUM_PAGES 184 tools/testing/selftests/vm/thuge-gen.c memset(map, 0xff, size*NUM_PAGES); NUM_PAGES 189 tools/testing/selftests/vm/thuge-gen.c assert(size == getpagesize() || (before - after) == NUM_PAGES); NUM_PAGES 204 tools/testing/selftests/vm/thuge-gen.c if (read_free(page_sizes[i]) < NUM_PAGES) { NUM_PAGES 207 tools/testing/selftests/vm/thuge-gen.c NUM_PAGES); NUM_PAGES 212 tools/testing/selftests/vm/thuge-gen.c if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) { NUM_PAGES 213 tools/testing/selftests/vm/thuge-gen.c printf("Please do echo %lu > /proc/sys/kernel/shmmax", largest * NUM_PAGES); NUM_PAGES 220 tools/testing/selftests/vm/thuge-gen.c "Please boot with hugepagesz=1G hugepages=%d\n", NUM_PAGES);