| /external/ltp/testcases/kernel/syscalls/readahead/ |
| D | readahead02.c | 7 * functional test for readahead() syscall 9 * This test is measuring effects of readahead syscall. 10 * It mmaps/reads a test file with and without prior call to readahead. 56 return readahead(fd, offset, len); in libc_readahead() 61 /* Should have the same effect as readahead() syscall */ in fadvise_willneed() 71 /* Use either readahead() syscall or POSIX_FADV_WILLNEED */ 72 int (*readahead)(int fd, off_t offset, size_t len); member 74 { "readahead on file", 0, 0, libc_readahead }, 75 { "readahead on overlayfs file", 1, 0, libc_readahead }, 146 * @do_readahead: call readahead prior to reading file content? [all …]
|
| D | readahead01.c | 9 * Verify that readahead() syscall fails with: 12 * - EINVAL when fd does not refer to a file type to which readahead() 37 TST_EXP_FAIL(readahead(-1, 0, getpagesize()), EBADF); in test_bad_fd() 45 TST_EXP_FAIL(readahead(fd, 0, getpagesize()), EBADF); in test_bad_fd() 56 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd() 62 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd() 74 /* check if readahead syscall is supported */ in setup()
|
| /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
| D | FixASCIIControlsReader.java | 59 int readAhead = 0; in read() local 67 available = super.read(readAheadBuffer, readAhead, 1) == 1; in read() 70 char c = processChar(readAheadBuffer[readAhead]); in read() 79 readAhead = 0; in read() 84 unread(readAheadBuffer, 0, readAhead + 1); in read() 85 readAhead = 0; in read() 89 readAhead++; in read() 92 else if (readAhead > 0) in read() 95 unread(readAheadBuffer, 0, readAhead); in read() 97 readAhead = 0; in read()
|
| D | Latin1Converter.java | 73 int readAhead = 0; in convert() local 101 readAheadBuffer[readAhead++] = (byte) b; in convert() 116 readAheadBuffer[readAhead++] = (byte) b; in convert() 121 out.append(readAheadBuffer, 0, readAhead); in convert() 122 readAhead = 0; in convert() 135 i = i - readAhead; in convert() 136 readAhead = 0; in convert() 147 for (int j = 0; j < readAhead; j++) in convert()
|
| /external/toybox/toys/other/ |
| D | readahead.c | 1 /* readahead.c - preload files into disk cache. 7 USE_READAHEAD(NEWTOY(readahead, NULL, TOYFLAG_BIN)) 9 config READAHEAD 10 bool "readahead" 13 usage: readahead FILE... 29 if (rc) perror_msg("readahead: %s", name); in do_readahead()
|
| D | blockdev.c | 26 --getra Get readahead in 512-byte sectors 27 --setra SECTORS Set readahead
|
| /external/xz-java/src/org/tukaani/xz/lzma/ |
| D | LZMAEncoder.java | 67 int readAhead = -1; field in LZMAEncoder 204 uncompressedSize += readAhead + 1; in reset() 205 readAhead = -1; in reset() 233 int posState = (lz.getPos() - readAhead) & posMask; in encodeLZMA1EndMarker() 262 assert readAhead == -1; in encodeInit() 273 --readAhead; in encodeInit() 274 assert readAhead == -1; in encodeInit() 283 if (!lz.hasEnoughData(readAhead + 1)) in encodeSymbol() 288 assert readAhead >= 0; in encodeSymbol() local 289 int posState = (lz.getPos() - readAhead) & posMask; in encodeSymbol() [all …]
|
| D | LZMAEncoderFast.java | 48 // Get the matches for the next byte unless readAhead indicates in getNextSymbol() 51 if (readAhead == -1) in getNextSymbol()
|
| /external/bcc/man/man8/ |
| D | readahead.8 | 1 .TH readahead 8 "2020-08-20" "USER COMMANDS" 3 readahead \- Show performance of read-ahead cache 5 .B readahead [-d DURATION] 12 readahead mechanism in the kernel and then uses \fB__page_cache_alloc()\fR and \fBmark_page_accesse… 33 .B readahead -d 30 59 readahead(2), madvise(2)
|
| /external/bcc/libbpf-tools/ |
| D | readahead.c | 4 // Based on readahead(8) from BPF-Perf-Tools-Book by Brendan Gregg. 12 #include "readahead.h" 13 #include "readahead.skel.h" 25 const char *argp_program_version = "readahead 0.1"; 31 "USAGE: readahead [--help] [-d DURATION]\n" 34 " readahead # summarize on-CPU time as a histogram" 35 " readahead -d 10 # trace for 10 seconds only\n"; 158 printf("Readahead unused/total pages: %d/%d\n", in main()
|
| /external/bcc/tools/ |
| D | readahead_example.txt | 1 Demonstration of readahead, the Linux eBPF/bcc version 17 readahead may pin the issue much faster in this case as the developer digs deeper 22 # readahead -d 30 44 while most of the pages stayed in the readahead cache for quite less time, after 30
|
| D | readahead.py | 4 # readahead Show performance of read-ahead cache 24 ./readahead -d 20 # monitor for 20 seconds and generate stats 44 BPF_ARRAY(pages); // increment/decrement readahead pages
|
| /external/e2fsprogs/e2fsck/ |
| D | readahead.c | 2 * readahead.c -- Prefetch filesystem metadata to speed up fsck. 44 dbg_printf("readahead start=%llu len=%llu err=%d\n", in readahead_dir_block() 120 /* Try not to spew bitmap range errors for readahead */ 163 err = ext2fs_allocate_block_bitmap(fs, "readahead bitmap", in e2fsck_readahead() 242 * The optimal readahead sizes were experimentally determined by in e2fsck_guess_readahead()
|
| D | recovery.c | 45 /* Release readahead buffers after use */ 55 * layer directly and so there is no readahead being done for us. We 56 * need to implement any readahead ourselves if we want it to happen at 61 * the readahead size, though. 128K is a purely arbitrary, good-enough 75 /* Do up to 128K of readahead */ in do_readahead() 80 /* Do the readahead itself. We'll submit MAXBUF buffer_heads at in do_readahead() 155 /* If this is a brand new buffer, start readahead. in jread()
|
| /external/linux-kselftest/tools/testing/selftests/mincore/ |
| D | mincore_selftest.c | 181 * containing the address and a number of subsequent pages (readahead). 183 * The actual readahead settings depend on the test environment, so we 246 * few pages (the readahead window) to be populated too. in TEST() 268 * End of the readahead window. The rest of the pages shouldn't in TEST() 275 TH_LOG("Unexpected page in memory beyond readahead window"); in TEST() 290 * any readahead in this case.
|
| /external/python/cpython2/Modules/_io/ |
| D | iobase.c | 480 PyObject *readahead = PyObject_CallMethod(self, "peek", "i", 1); in iobase_readline() local 481 if (readahead == NULL) { in iobase_readline() 489 if (!PyBytes_Check(readahead)) { in iobase_readline() 492 "not '%.200s'", Py_TYPE(readahead)->tp_name); in iobase_readline() 493 Py_DECREF(readahead); in iobase_readline() 496 if (PyBytes_GET_SIZE(readahead) > 0) { in iobase_readline() 498 const char *buf = PyBytes_AS_STRING(readahead); in iobase_readline() 501 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in iobase_readline() 509 if (n >= PyBytes_GET_SIZE(readahead)) in iobase_readline() 517 Py_DECREF(readahead); in iobase_readline()
|
| /external/strace/tests-mx32/ |
| D | readahead.c | 33 /* Check for glibc readahead argument passing bugs. */ 97 rc = readahead(fds[i], offsets[j], counts[k]); in main() 99 printf("readahead(%d, %lld, %lu) = %s\n", in main()
|
| /external/strace/tests-m32/ |
| D | readahead.c | 33 /* Check for glibc readahead argument passing bugs. */ 97 rc = readahead(fds[i], offsets[j], counts[k]); in main() 99 printf("readahead(%d, %lld, %lu) = %s\n", in main()
|
| /external/strace/tests/ |
| D | readahead.c | 33 /* Check for glibc readahead argument passing bugs. */ 97 rc = readahead(fds[i], offsets[j], counts[k]); in main() 99 printf("readahead(%d, %lld, %lu) = %s\n", in main()
|
| /external/python/cpython3/Modules/_io/ |
| D | iobase.c | 559 PyObject *readahead = PyObject_CallOneArg(peek, _PyLong_GetOne()); in _io__IOBase_readline_impl() local 560 if (readahead == NULL) { in _io__IOBase_readline_impl() 568 if (!PyBytes_Check(readahead)) { in _io__IOBase_readline_impl() 571 "not '%.200s'", Py_TYPE(readahead)->tp_name); in _io__IOBase_readline_impl() 572 Py_DECREF(readahead); in _io__IOBase_readline_impl() 575 if (PyBytes_GET_SIZE(readahead) > 0) { in _io__IOBase_readline_impl() 577 const char *buf = PyBytes_AS_STRING(readahead); in _io__IOBase_readline_impl() 580 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in _io__IOBase_readline_impl() 588 if (n >= PyBytes_GET_SIZE(readahead)) in _io__IOBase_readline_impl() 596 Py_DECREF(readahead); in _io__IOBase_readline_impl()
|
| /external/rust/crates/nix/src/sys/ |
| D | sendfile.rs | 127 /// `readahead` parameter, disabling caching heuristics. 153 /// `readahead` specifies the minimum number of pages to cache in memory ahead of the page 167 readahead: u16 169 // Readahead goes in upper 16 bits 172 let ra32 = u32::from(readahead);
|
| /external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
| D | hugemmap30.c | 10 * readahead() on some kernels can cause the reservation counter to get 38 readahead(fd, 0, hpage_size); in run_test()
|
| /external/e2fsprogs/debugfs/ |
| D | recovery.c | 45 /* Release readahead buffers after use */ 55 * layer directly and so there is no readahead being done for us. We 56 * need to implement any readahead ourselves if we want it to happen at 61 * the readahead size, though. 128K is a purely arbitrary, good-enough 75 /* Do up to 128K of readahead */ in do_readahead() 80 /* Do the readahead itself. We'll submit MAXBUF buffer_heads at in do_readahead() 155 /* If this is a brand new buffer, start readahead. in jread()
|
| /external/tensorflow/tensorflow/python/platform/ |
| D | resource_loader.py | 130 def readahead_file_path(path, readahead='128M'): # pylint: disable=unused-argument argument 131 """Readahead files not implemented; simply returns given path."""
|
| /external/musl/src/linux/ |
| D | readahead.c | 5 ssize_t readahead(int fd, off_t pos, size_t len) in readahead() function
|