Searched refs:test_pages (Results 1 – 2 of 2) sorted by relevance
/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages03.c | 51 static void *test_pages[N_PAGES]; variable 84 test_pages[n] = SAFE_MMAP(NULL, page_size, PROT_READ | PROT_WRITE | PROT_EXEC, in setup() 86 if (madvise(test_pages[n], page_size, MADV_MERGEABLE)) { in setup() 96 if (mbind(test_pages[n], page_size, MPOL_BIND, new_nodes[0], in setup() 100 memset(test_pages[n], 0, page_size); in setup() 113 if (test_pages[n]) in cleanup() 114 SAFE_MUNMAP(test_pages[n], page_size); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 66 int test_pages = TEST_PAGES * hpsz / pgsz; in do_child() local 72 pages = SAFE_MALLOC(sizeof(char *) * test_pages); in do_child() 73 nodes = SAFE_MALLOC(sizeof(int) * test_pages); in do_child() 74 status = SAFE_MALLOC(sizeof(int) * test_pages); in do_child() 76 for (i = 0; i < test_pages; i++) in do_child() 80 for (j = 0; j < test_pages; j++) { in do_child() 88 TEST(numa_move_pages(ppid, test_pages, in do_child()
|