Lines Matching +full:0 +full:xde
36 ASSERT_EQ(numa_available(), 0); in FIXTURE_SETUP()
41 for (n = 0; n < numa_max_possible_node(); n++) in FIXTURE_SETUP()
66 int status = 0; in migrate()
68 int failures = 0; in migrate()
78 return 0; in migrate()
80 ret = move_pages(0, 1, (void **) &ptr, &n2, &status, in migrate()
83 if (ret > 0) { in migrate()
93 failures = 0; in migrate()
99 return 0; in migrate()
104 volatile uint64_t y = 0; in access_mem()
128 if (self->nthreads < 2 || self->n1 < 0 || self->n2 < 0)
132 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
135 memset(ptr, 0xde, TWOMEG);
136 for (i = 0; i < self->nthreads - 1; i++)
140 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
141 for (i = 0; i < self->nthreads - 1; i++)
142 ASSERT_EQ(pthread_cancel(self->threads[i]), 0);
154 if (self->nthreads < 2 || self->n1 < 0 || self->n2 < 0)
158 MAP_SHARED | MAP_ANONYMOUS, -1, 0);
161 memset(ptr, 0xde, TWOMEG);
162 for (i = 0; i < self->nthreads - 1; i++) {
175 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
176 for (i = 0; i < self->nthreads - 1; i++)
177 ASSERT_EQ(kill(self->pids[i], SIGTERM), 0);
188 if (self->nthreads < 2 || self->n1 < 0 || self->n2 < 0)
192 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
196 ASSERT_EQ(madvise(ptr, TWOMEG, MADV_HUGEPAGE), 0);
197 memset(ptr, 0xde, TWOMEG);
198 for (i = 0; i < self->nthreads - 1; i++)
202 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
203 for (i = 0; i < self->nthreads - 1; i++)
204 ASSERT_EQ(pthread_cancel(self->threads[i]), 0);