Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages03.c40 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()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c103 int test_pages = tpgs * hpsz / pgsz; in do_child() local
109 pages = SAFE_MALLOC(sizeof(char *) * test_pages); in do_child()
110 nodes = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
111 status = SAFE_MALLOC(sizeof(int) * test_pages); in do_child()
113 for (i = 0; i < test_pages; i++) in do_child()
117 for (j = 0; j < test_pages; j++) { in do_child()
125 TEST(numa_move_pages(ppid, test_pages, in do_child()