Lines Matching +full:read +full:- +full:1

1 // SPDX-License-Identifier: GPL-2.0
24 TEST_FAILED = 1,
79 printf(PREFIX PREFIX "expect to read 0x%lx bytes of data in total\n", in seek_read_hugepage_filemap()
87 ret_count = read(fd, buf, wr_chunk_size); in seek_read_hugepage_filemap()
89 printf(PREFIX PREFIX "read reach end of the file\n"); in seek_read_hugepage_filemap()
92 perror(PREFIX ERROR_PREFIX "read failed"); in seek_read_hugepage_filemap()
101 printf(PREFIX PREFIX "actually read 0x%lx bytes of data in total\n", in seek_read_hugepage_filemap()
115 printf(PREFIX PREFIX "expect to read 0x%lx bytes of data in total\n", in read_hugepage_filemap()
118 ret_count = read(fd, buf, wr_chunk_size); in read_hugepage_filemap()
120 printf(PREFIX PREFIX "read reach end of the file\n"); in read_hugepage_filemap()
123 perror(PREFIX ERROR_PREFIX "read failed"); in read_hugepage_filemap()
132 printf(PREFIX PREFIX "actually read 0x%lx bytes of data in total\n", in read_hugepage_filemap()
198 * |<---------------------- 1MB ---------------------->| in test_hugetlb_read_hwpoison()
199 * |<---- healthy page ---->|<---- HWPOISON page ----->| in test_hugetlb_read_hwpoison()
200 * |<------------------- (1MB - 8KB) ----------------->| in test_hugetlb_read_hwpoison()
210 * Userspace should be able to read (1MB + 1 page) from in test_hugetlb_read_hwpoison()
218 * Userspace should be able to read (1MB - 2 pages) from in test_hugetlb_read_hwpoison()
223 len / 2 - MAX(2 * pagesize, wr_chunk_size))) in test_hugetlb_read_hwpoison()
245 return -1; in create_hugetlbfs_file()
253 if (file_stat->f_type != HUGETLBFS_MAGIC) { in create_hugetlbfs_file()
261 return -1; in create_hugetlbfs_file()
269 /* Test read() in different granularity. */ in main()
277 printf("Write/read chunk size=0x%lx\n", in main()
283 printf(PREFIX "HugeTLB read regression test...\n"); in main()
286 printf(PREFIX "HugeTLB read regression test...%s\n", in main()
290 return -1; in main()
295 printf(PREFIX "HugeTLB read HWPOISON test...\n"); in main()
298 printf(PREFIX "HugeTLB read HWPOISON test...%s\n", in main()
302 return -1; in main()
307 printf(PREFIX "HugeTLB seek then read HWPOISON test...\n"); in main()
310 printf(PREFIX "HugeTLB seek then read HWPOISON test...%s\n", in main()
314 return -1; in main()
321 return -1; in main()