Home
last modified time | relevance | path

Searched refs:TEST_PAGES (Results 1 – 9 of 9) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages02.c60 #define TEST_PAGES 2 macro
89 void *pages[TEST_PAGES] = { 0 }; in main()
90 int nodes[TEST_PAGES]; in main()
91 int status[TEST_PAGES]; in main()
96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
100 for (i = 0; i < TEST_PAGES; i++) in main()
104 numa_move_pages(0, TEST_PAGES, pages, nodes, status, in main()
108 free_pages(pages, TEST_PAGES); in main()
114 for (i = 0; i < TEST_PAGES; i++) in main()
117 verify_pages_on_node(pages, status, TEST_PAGES, to_node); in main()
[all …]
Dmove_pages01.c59 #define TEST_PAGES 2 macro
60 #define TEST_NODES TEST_PAGES
80 void *pages[TEST_PAGES] = { 0 }; in main()
81 int status[TEST_PAGES]; in main()
87 ret = alloc_pages_linear(pages, TEST_PAGES); in main()
91 ret = numa_move_pages(0, TEST_PAGES, pages, NULL, status, 0); in main()
94 free_pages(pages, TEST_PAGES); in main()
100 verify_pages_linear(pages, status, TEST_PAGES); in main()
102 free_pages(pages, TEST_PAGES); in main()
Dmove_pages03.c64 #define TEST_PAGES 2 macro
89 for (i = 0; i < TEST_PAGES; i++) { in child()
127 void *pages[TEST_PAGES] = { 0 }; in main()
128 int nodes[TEST_PAGES]; in main()
129 int status[TEST_PAGES]; in main()
136 ret = alloc_shared_pages_on_node(pages, TEST_PAGES, from_node); in main()
140 for (i = 0; i < TEST_PAGES; i++) { in main()
165 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
174 verify_pages_on_node(pages, status, TEST_PAGES, to_node); in main()
185 free_shared_pages(pages, TEST_PAGES); in main()
Dmove_pages06.c60 #define TEST_PAGES 2 macro
89 void *pages[TEST_PAGES] = { 0 }; in main()
90 int nodes[TEST_PAGES]; in main()
91 int status[TEST_PAGES]; in main()
96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
101 for (i = 0; i < TEST_PAGES; i++) in main()
104 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
113 free_pages(pages, TEST_PAGES); in main()
Dmove_pages10.c60 #define TEST_PAGES 2 macro
89 void *pages[TEST_PAGES] = { 0 }; in main()
90 int nodes[TEST_PAGES]; in main()
91 int status[TEST_PAGES]; in main()
96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
100 for (i = 0; i < TEST_PAGES; i++) in main()
103 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
112 free_pages(pages, TEST_PAGES); in main()
Dmove_pages07.c60 #define TEST_PAGES 2 macro
89 void *pages[TEST_PAGES] = { 0 }; in main()
90 int nodes[TEST_PAGES]; in main()
91 int status[TEST_PAGES]; in main()
97 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
101 for (i = 0; i < TEST_PAGES; i++) in main()
106 ret = numa_move_pages(ipid, TEST_PAGES, pages, nodes, in main()
115 free_pages(pages, TEST_PAGES); in main()
Dmove_pages09.c60 #define TEST_PAGES 2 macro
88 void *pages[TEST_PAGES] = { 0 }; in main()
89 int nodes[TEST_PAGES]; in main()
90 int status[TEST_PAGES]; in main()
95 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
99 for (i = 0; i < TEST_PAGES; i++) in main()
102 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
125 free_pages(pages, TEST_PAGES); in main()
Dmove_pages11.c65 #define TEST_PAGES 2 macro
90 for (i = 0; i < TEST_PAGES; i++) { in child()
128 void *pages[TEST_PAGES] = { 0 }; in main()
129 int nodes[TEST_PAGES]; in main()
130 int status[TEST_PAGES]; in main()
137 ret = alloc_shared_pages_on_node(pages, TEST_PAGES, from_node); in main()
141 for (i = 0; i < TEST_PAGES; i++) { in main()
168 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
186 free_shared_pages(pages, TEST_PAGES); in main()
Dmove_pages04.c67 #define TEST_PAGES 2 macro
70 #define UNTOUCHED_PAGE (TEST_PAGES - 1)
105 void *pages[TEST_PAGES] = { 0 }; in main()
106 int nodes[TEST_PAGES]; in main()
107 int status[TEST_PAGES]; in main()
125 for (i = 0; i < TEST_PAGES; i++) in main()
128 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
152 free_pages(pages, TEST_PAGES); in main()