Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c42 #define CHUNK_SZ (400*1024*1024L) macro
43 #define CHUNK_PAGES (CHUNK_SZ / pg_sz)
44 #define PASS_THRESHOLD (CHUNK_SZ / 4)
70 if (sys_buf_start.freeram < 2 * CHUNK_SZ) { in setup()
72 2 * CHUNK_SZ); in setup()
74 if (sys_buf_start.freeswap < 2 * CHUNK_SZ) { in setup()
76 2 * CHUNK_SZ); in setup()
133 target = SAFE_MMAP(NULL, CHUNK_SZ, PROT_READ | PROT_WRITE, in test_advice_willneed()
136 dirty_pages(target, CHUNK_SZ); in test_advice_willneed()
142 TEST(madvise(target, CHUNK_SZ, MADV_WILLNEED)); in test_advice_willneed()
[all …]
/external/libevent/
Dbuffer.c1331 #define CHUNK_SZ 128 in find_eol_char() macro
1338 size_t chunk = (s + CHUNK_SZ < s_end) ? CHUNK_SZ : (s_end - s); in find_eol_char()
1348 s += CHUNK_SZ; in find_eol_char()
1352 #undef CHUNK_SZ in find_eol_char()