Searched refs:TWOMEG (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A D | migration.c | 21 #define TWOMEG (2<<20) macro 132 ptr = mmap(NULL, TWOMEG, PROT_READ | PROT_WRITE, 136 memset(ptr, 0xde, TWOMEG); 158 ptr = mmap(NULL, TWOMEG, PROT_READ | PROT_WRITE, 162 memset(ptr, 0xde, TWOMEG); 195 ptr = mmap(NULL, 2*TWOMEG, PROT_READ | PROT_WRITE, 199 ptr = (uint64_t *) ALIGN((uintptr_t) ptr, TWOMEG); 200 ASSERT_EQ(madvise(ptr, TWOMEG, MADV_HUGEPAGE), 0); 201 memset(ptr, 0xde, TWOMEG); 227 ptr = mmap(NULL, 2 * TWOMEG, PROT_READ | PROT_WRITE, [all …]
|
| H A D | hmm-tests.c | 56 #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 …]
|