Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c53 #define CHUNK_SZ (400*1024*1024L) macro
54 #define MEM_LIMIT (CHUNK_SZ / 2)
55 #define MEMSW_LIMIT (2 * CHUNK_SZ)
56 #define PASS_THRESHOLD (CHUNK_SZ / 4)
112 if (sys_buf_start.freeram < 2 * CHUNK_SZ) { in setup()
114 2 * CHUNK_SZ); in setup()
116 if (sys_buf_start.freeswap < 2 * CHUNK_SZ) { in setup()
118 2 * CHUNK_SZ); in setup()
149 CHUNK_SZ / 1024, CHUNK_SZ / pg_sz, MEM_LIMIT / 1024, PASS_THRESHOLD_KB); in setup()
185 target = SAFE_MMAP(NULL, CHUNK_SZ, PROT_READ | PROT_WRITE, in test_advice_willneed()
[all …]
/third_party/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()