Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c30 #define CHUNK_SZ (400*1024*1024L) macro
31 #define CHUNK_PAGES (CHUNK_SZ / pg_sz)
32 #define PASS_THRESHOLD (CHUNK_SZ / 4)
57 if (sys_buf_start.freeram < 2 * CHUNK_SZ) { in setup()
59 2 * CHUNK_SZ); in setup()
61 if (sys_buf_start.freeswap < 2 * CHUNK_SZ) { in setup()
63 2 * CHUNK_SZ); in setup()
120 target = SAFE_MMAP(NULL, CHUNK_SZ, PROT_READ | PROT_WRITE, in test_advice_willneed()
123 dirty_pages(target, CHUNK_SZ); in test_advice_willneed()
129 TEST(madvise(target, CHUNK_SZ, MADV_WILLNEED)); in test_advice_willneed()
[all …]
/external/ltp/testcases/kernel/syscalls/preadv2/
Dpreadv203.c50 #define CHUNK_SZ 4123 macro
80 char exp_val = '0' + (off + checked)/CHUNK_SZ; in verify_short_read()
100 char buf1[CHUNK_SZ/2]; in nowait_reader()
101 char buf2[CHUNK_SZ]; in nowait_reader()
115 off_t off = random() % ((CHUNKS - 2) * CHUNK_SZ); in nowait_reader()
134 if (TST_RET != CHUNK_SZ + CHUNK_SZ/2) { in nowait_reader()
152 char buf[CHUNK_SZ]; in writer_thread()
165 off_t off = CHUNK_SZ * j; in writer_thread()
244 char buf[CHUNK_SZ]; in setup()
/external/libevent/
Dbuffer.c1496 #define CHUNK_SZ 128 in find_eol_char() macro
1503 size_t chunk = (s + CHUNK_SZ < s_end) ? CHUNK_SZ : (s_end - s); in find_eol_char()
1513 s += CHUNK_SZ; in find_eol_char()
1517 #undef CHUNK_SZ in find_eol_char()