Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/mm/
H A Dmigration.c18 #define TWOMEG (2<<20) macro
131 ptr = mmap(NULL, TWOMEG, PROT_READ | PROT_WRITE,
135 memset(ptr, 0xde, TWOMEG);
157 ptr = mmap(NULL, TWOMEG, PROT_READ | PROT_WRITE,
161 memset(ptr, 0xde, TWOMEG);
191 ptr = mmap(NULL, 2*TWOMEG, PROT_READ | PROT_WRITE,
195 ptr = (uint64_t *) ALIGN((uintptr_t) ptr, TWOMEG);
196 ASSERT_EQ(madvise(ptr, TWOMEG, MADV_HUGEPAGE), 0);
197 memset(ptr, 0xde, TWOMEG);
H A Dhmm-tests.c53 #define TWOMEG (1 << 21) macro
695 size = 2 * TWOMEG; in TEST_F()
711 size = TWOMEG; in TEST_F()
803 size = ALIGN(TWOMEG, default_hsize); in TEST_F()
1586 size = ALIGN(TWOMEG, default_hsize); in TEST_F()