Searched refs:test_pages (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages03.c | 40 static void *test_pages[N_PAGES]; variable 77 test_pages[n] = SAFE_MMAP(NULL, page_size, PROT_READ | PROT_WRITE | PROT_EXEC, in setup() 79 if (madvise(test_pages[n], page_size, MADV_MERGEABLE)) { in setup() 89 if (mbind(test_pages[n], page_size, MPOL_BIND, new_nodes[0], in setup() 93 memset(test_pages[n], 0, page_size); in setup() 106 if (test_pages[n]) in cleanup() 107 SAFE_MUNMAP(test_pages[n], page_size); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 114 int test_pages = tpgs * hpsz / pgsz; in do_child() local 120 pages = SAFE_MALLOC(sizeof(char *) * test_pages); in do_child() 121 nodes = SAFE_MALLOC(sizeof(int) * test_pages); in do_child() 122 status = SAFE_MALLOC(sizeof(int) * test_pages); in do_child() 124 for (i = 0; i < test_pages; i++) in do_child() 128 for (j = 0; j < test_pages; j++) { in do_child() 136 TEST(numa_move_pages(ppid, test_pages, in do_child()
|