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.c21 #define TWOMEG (2<<20) macro
133 ptr = mmap(NULL, TWOMEG, PROT_READ | PROT_WRITE,
137 memset(ptr, 0xde, TWOMEG);
159 ptr = mmap(NULL, TWOMEG, PROT_READ | PROT_WRITE,
163 memset(ptr, 0xde, TWOMEG);
196 ptr = mmap(NULL, 2*TWOMEG, PROT_READ | PROT_WRITE,
200 ptr = (uint64_t *) ALIGN((uintptr_t) ptr, TWOMEG);
201 ASSERT_EQ(madvise(ptr, TWOMEG, MADV_HUGEPAGE), 0);
202 memset(ptr, 0xde, TWOMEG);
228 ptr = mmap(NULL, 2 * TWOMEG, PROT_READ | PROT_WRITE,
[all …]
H A Dhmm-tests.c56 #define TWOMEG (1 << 21) macro
551 npages = ALIGN(use_thp ? TWOMEG : HMM_BUFFER_SIZE, in TEST_F()
731 size = 2 * TWOMEG; in TEST_F()
747 size = TWOMEG; in TEST_F()
839 size = ALIGN(TWOMEG, default_hsize); in TEST_F()
1622 size = ALIGN(TWOMEG, default_hsize); in TEST_F()
2109 size = TWOMEG; in TEST_F()
2161 size = TWOMEG; in TEST_F()
2224 size = TWOMEG; in TEST_F()
2283 size = TWOMEG; in TEST_F()
[all …]