Home
last modified time | relevance | path

Searched refs:TEST_BLOCK_SIZE (Results 1 – 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/tee/
Dtee01.c20 #define TEST_BLOCK_SIZE 1024 macro
26 static char buffer[TEST_BLOCK_SIZE];
31 char teebuffer[TEST_BLOCK_SIZE]; in check_file()
34 SAFE_READ(1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file()
36 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file()
41 if (i < TEST_BLOCK_SIZE) in check_file()
61 ret = splice(fd_in, NULL, pipe1[1], NULL, TEST_BLOCK_SIZE, 0); in tee_test()
65 ret = tee(pipe1[0], pipe2[1], TEST_BLOCK_SIZE, SPLICE_F_NONBLOCK); in tee_test()
69 ret = splice(pipe2[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in tee_test()
87 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
[all …]
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice01.c24 #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()
82 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
86 SAFE_WRITE(SAFE_WRITE_ALL, fd_in, buffer, TEST_BLOCK_SIZE); in setup()
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c21 #define TEST_BLOCK_SIZE (1<<17) /* 128K */ macro
26 static char buffer[TEST_BLOCK_SIZE];
31 char vmsplicebuffer[TEST_BLOCK_SIZE]; in check_file()
34 SAFE_READ(1, fd_out, vmsplicebuffer, TEST_BLOCK_SIZE); in check_file()
36 for (i = 0; i < TEST_BLOCK_SIZE; i++) { in check_file()
41 if (i < TEST_BLOCK_SIZE) in check_file()
59 v.iov_len = TEST_BLOCK_SIZE; in vmsplice_test()
105 for (i = 0; i < TEST_BLOCK_SIZE; i++) in setup()
Dvmsplice03.c16 #define TEST_BLOCK_SIZE (64*1024) /* 64K */ macro
18 static char buffer[TEST_BLOCK_SIZE];
30 SAFE_WRITE(SAFE_WRITE_ALL, 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()
66 {&iov, .iov_sizes = (int[]){TEST_BLOCK_SIZE, -1}},
Dvmsplice02.c32 #define TEST_BLOCK_SIZE 128 macro
34 static char buffer[TEST_BLOCK_SIZE];
58 ivc.iov_len = TEST_BLOCK_SIZE; in setup()