Searched refs:TEST_BLOCK_SIZE (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 21 #define TEST_BLOCK_SIZE 1024 macro 27 static char buffer[TEST_BLOCK_SIZE]; 32 char teebuffer[TEST_BLOCK_SIZE]; in check_file() 35 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file() 37 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file() 42 if (i < TEST_BLOCK_SIZE) in check_file() 62 ret = splice(fd_in, NULL, pipe1[1], NULL, TEST_BLOCK_SIZE, 0); in tee_test() 66 ret = tee(pipe1[0], pipe2[1], TEST_BLOCK_SIZE, SPLICE_F_NONBLOCK); in tee_test() 70 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test() 94 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup() [all …]
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 24 #define TEST_BLOCK_SIZE 1024 macro 29 static char buffer[TEST_BLOCK_SIZE]; 35 char splicebuffer[TEST_BLOCK_SIZE]; in check_file() 38 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE); in check_file() 40 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file() 45 if (i < TEST_BLOCK_SIZE) in check_file() 62 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); in splice_test() 66 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test() 88 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup() 92 SAFE_WRITE(1, fd_in, buffer, TEST_BLOCK_SIZE); in setup()
|
/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice01.c | 22 #define TEST_BLOCK_SIZE (1<<17) /* 128K */ macro 27 static char buffer[TEST_BLOCK_SIZE]; 32 char vmsplicebuffer[TEST_BLOCK_SIZE]; in check_file() 35 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file() 37 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file() 42 if (i < TEST_BLOCK_SIZE) in check_file() 60 v.iov_len = TEST_BLOCK_SIZE; in vmsplice_test() 111 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
|
D | vmsplice03.c | 16 #define TEST_BLOCK_SIZE (64*1024) /* 64K */ macro 18 static char buffer[TEST_BLOCK_SIZE]; 30 SAFE_WRITE(1, pipes[1], buffer, TEST_BLOCK_SIZE); in vmsplice_test() 39 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in vmsplice_test() 58 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup() 67 {&iov, .iov_sizes = (int[]){TEST_BLOCK_SIZE, -1}},
|
D | vmsplice02.c | 34 #define TEST_BLOCK_SIZE 128 macro 36 static char buffer[TEST_BLOCK_SIZE]; 65 ivc.iov_len = TEST_BLOCK_SIZE; in setup()
|
/external/python/cpython2/Demo/md5test/ |
D | md5driver.py | 26 TEST_BLOCK_SIZE = 1000 29 TEST_BYTES = TEST_BLOCK_SIZE * TEST_BLOCKS 35 data = filler * (TEST_BLOCK_SIZE // filsiz) 36 data = data + filler[:(TEST_BLOCK_SIZE % filsiz)]
|
/external/rust/crates/vsock/tests/ |
D | vsock.rs | 23 const TEST_BLOCK_SIZE: usize = 5_000; constant 47 .write(&blob[tx_pos..tx_pos + TEST_BLOCK_SIZE]) in test_vsock()
|