• Home
  • Raw
  • Download

Lines Matching refs:SIZE

26 #define SIZE (2 * 1024 * 1024)  macro
58 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
62 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read()
65 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_prot_read()
69 munmap(addr, SIZE); in test_prot_read()
79 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write()
83 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_write()
87 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_prot_write()
90 munmap(addr, SIZE); in test_prot_write()
100 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes()
109 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_holes()
112 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_holes()
132 munmap(addr, SIZE); in test_holes()
170 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_read()
174 ksft_test_result(range_is_not_populated(addr, SIZE), in test_populate_read()
177 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_populate_read()
179 ksft_test_result(range_is_populated(addr, SIZE), in test_populate_read()
182 munmap(addr, SIZE); in test_populate_read()
192 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_write()
196 ksft_test_result(range_is_not_populated(addr, SIZE), in test_populate_write()
199 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_populate_write()
201 ksft_test_result(range_is_populated(addr, SIZE), in test_populate_write()
204 munmap(addr, SIZE); in test_populate_write()
242 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_softdirty()
249 ksft_test_result(range_is_not_softdirty(addr, SIZE), in test_softdirty()
253 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_softdirty()
255 ksft_test_result(range_is_not_softdirty(addr, SIZE), in test_softdirty()
259 ret = madvise(addr, SIZE, MADV_POPULATE_WRITE); in test_softdirty()
261 ksft_test_result(range_is_softdirty(addr, SIZE), in test_softdirty()
264 munmap(addr, SIZE); in test_softdirty()