Lines Matching +full:random +full:- +full:access
1 // SPDX-License-Identifier: GPL-2.0
32 cs->nr_cache, cs->nr_dirty, cs->nr_writeback, in print_cachestat()
33 cs->nr_evicted, cs->nr_recently_evicted); in print_cachestat()
44 ksft_print_msg("Unable to access urandom.\n"); in write_exactly()
68 remained -= read_len; in write_exactly()
72 /* write random data to fd */ in write_exactly()
79 ksft_print_msg("Unable write random data to file.\n"); in write_exactly()
84 remained -= write_len; in write_exactly()
112 * Open/create the file at filename, (optionally) write random data to it
131 if (fd == -1) { in test_cachestat()
141 ksft_print_msg("Unable to access urandom.\n"); in test_cachestat()
152 ksft_print_msg("Cachestat returned non-zero.\n"); in test_cachestat()
189 ksft_print_msg("Cachestat (after fsync) returned non-zero.\n"); in test_cachestat()
239 ksft_print_msg("Cachestat returned non-zero.\n"); in test_cachestat_shmem()
263 ret = syscall(__NR_cachestat, -1, NULL, NULL, 0); in main()
264 if (ret == -1 && errno == ENOSYS) in main()
269 if (ret == -1 && errno == EBADF) { in main()