Home
last modified time | relevance | path

Searched refs:pg_sz (Results 1 - 1 of 1) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise06.c59 static int pg_sz, stat_refresh_sup; variable
102 pg_sz = getpagesize(); in setup()
143 CHUNK_SZ / 1024, CHUNK_SZ / pg_sz, MEM_LIMIT / 1024, PASS_THRESHOLD_KB); in setup()
149 long pages = size / pg_sz; in dirty_pages()
152 ptr[i * pg_sz] = 'x'; in dirty_pages()
207 TEST(madvise(target, pg_sz * 3, MADV_WILLNEED)); in test_advice_willneed()
217 } while (swapcached < swapcached_start + pg_sz*3/1024 && loops > 0); in test_advice_willneed()
222 dirty_pages(target, pg_sz * 3); in test_advice_willneed()

Completed in 1 milliseconds