/aosp_15_r20/external/ltp/testcases/kernel/syscalls/readahead/ |
H A 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 …]
|
H A D | readahead01.c | 10 * Verify that readahead() syscall fails with: 13 * - EINVAL when fd does not refer to a file type to which readahead() 36 TST_EXP_FAIL(readahead(-1, 0, getpagesize()), EBADF, in test_bad_fd() 37 "readahead() with fd = -1"); in test_bad_fd() 43 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EBADF, in test_bad_fd() 44 "readahead() with invalid fd"); in test_bad_fd() 64 TST_EXP_FAIL_ARR(readahead(fd->fd, 0, getpagesize()), exp_errnos, in test_invalid_fd() 65 ARRAY_SIZE(exp_errnos), "readahead() on %s", tst_fd_desc(fd)); in test_invalid_fd() 78 /* check if readahead syscall is supported */ in setup()
|
/aosp_15_r20/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
H A D | snapuserd_readahead.cpp | 32 ReadAhead::ReadAhead(const std::string& cow_device, const std::string& backing_device, in ReadAhead() function in android::snapshot::ReadAhead 42 void ReadAhead::CheckOverlap(const CowOperation* cow_op) { in CheckOverlap() 45 SNAP_LOG(ERROR) << "ReadAhead operation has no source offset: " << *cow_op; in CheckOverlap() 64 int ReadAhead::PrepareNextReadAhead(uint64_t* source_offset, int* pending_ops, in PrepareNextReadAhead() 150 bool ReadAhead::ReconstructDataFromCow() { in ReconstructDataFromCow() 281 bool ReadAhead::ReadAheadAsyncIO() { in ReadAheadAsyncIO() 393 void ReadAhead::UpdateScratchMetadata() { in UpdateScratchMetadata() 426 bool ReadAhead::ReapIoCompletions(int pending_ios_to_complete) { in ReapIoCompletions() 458 void ReadAhead::ProcessXorData(size_t& block_xor_index, size_t& xor_index, in ProcessXorData() 497 bool ReadAhead::ReadXorData(size_t block_index, size_t xor_op_index, in ReadXorData() [all …]
|
/aosp_15_r20/system/incremental_delivery/incfs/tests/ |
H A D | MountRegistry_test.cpp | 114 …s /data/incremental/MT_data_app_vmdl703/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0 in TEST_F() 115 …s /data/incremental/MT_data_app_vmdl703/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0 in TEST_F() 135 …s /data/incremental/MT_data_app_vmdl703/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0 in TEST_F() 136 …s /data/incremental/MT_data_app_vmdl703/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0 in TEST_F() 152 …red:56 - incremental-fs /data/incremental2 rw,seclabel,read_timeout_ms=10000,readahead=0,report_uid in TEST_F() 153 …remental/MT_data_app_vmdl199/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0,report_uid in TEST_F() 154 …remental/MT_data_app_vmdl203/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0,report_uid in TEST_F() 155 …remental/MT_data_app_vmdl154/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0,report_uid in TEST_F() 156 …remental/MT_data_app_vmdl154/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0,report_uid in TEST_F() 157 …remental/MT_data_app_vmdl209/backing_store rw,seclabel,read_timeout_ms=10000,readahead=0,report_uid in TEST_F() [all …]
|
/aosp_15_r20/external/xz-java/src/org/tukaani/xz/lzma/ |
H A 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 …]
|
/aosp_15_r20/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/external/bcc/libbpf-tools/ |
H A 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\n" 35 " readahead -d 10 # trace for 10 seconds only\n"; 157 printf("Readahead unused/total pages: %d/%d\n", in main()
|
/aosp_15_r20/external/toybox/toys/other/ |
H A 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()
|
/aosp_15_r20/external/bcc/man/man8/ |
H A 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)
|
/aosp_15_r20/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()
|
/aosp_15_r20/external/python/cpython3/Modules/_io/ |
D | iobase.c | 553 PyObject *readahead = PyObject_CallOneArg(peek, _PyLong_GetOne()); in _io__IOBase_readline_impl() local 554 if (readahead == NULL) { in _io__IOBase_readline_impl() 562 if (!PyBytes_Check(readahead)) { in _io__IOBase_readline_impl() 565 "not '%.200s'", Py_TYPE(readahead)->tp_name); in _io__IOBase_readline_impl() 566 Py_DECREF(readahead); in _io__IOBase_readline_impl() 569 if (PyBytes_GET_SIZE(readahead) > 0) { in _io__IOBase_readline_impl() 571 const char *buf = PyBytes_AS_STRING(readahead); in _io__IOBase_readline_impl() 574 if (n >= PyBytes_GET_SIZE(readahead) || n >= limit) in _io__IOBase_readline_impl() 582 if (n >= PyBytes_GET_SIZE(readahead)) in _io__IOBase_readline_impl() 590 Py_DECREF(readahead); in _io__IOBase_readline_impl()
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/mincore/ |
H A 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.
|
/aosp_15_r20/external/e2fsprogs/e2fsck/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/external/bcc/tools/ |
H A 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
|
/aosp_15_r20/external/e2fsprogs/debugfs/ |
H A 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()
|
/aosp_15_r20/system/core/init/libprefetch/prefetch/src/ |
H A D | replay.rs | 60 fn readahead( in readahead() function 66 debug!("readahead {:?}", record); 67 let _dbg = scoped_log(id, "readahead"); 90 return Err(Error::Read { error: format!("readahead failed: {}", Errno::last_raw()) }); 101 // TODO: Try readahead() syscall or async I/O 183 if let Err(e) = readahead(id, file, &record, buffer.try_into().unwrap()) { in worker_internal() 188 "readahead failed on file id: {} with: {}", in worker_internal()
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/sdk/linux_bionic/include/bionic/libc/include/ |
H A D | fcntl.h | 216 * [readahead(2)](http://man7.org/linux/man-pages/man2/readahead.2.html) 217 * initiates readahead for the given file. 221 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|
/aosp_15_r20/bionic/libc/include/ |
H A D | fcntl.h | 214 * [readahead(2)](https://man7.org/linux/man-pages/man2/readahead.2.html) 215 * initiates readahead for the given file. 219 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/sdk/android/arm64/include/bionic/libc/include/ |
H A D | fcntl.h | 216 * [readahead(2)](http://man7.org/linux/man-pages/man2/readahead.2.html) 217 * initiates readahead for the given file. 221 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/sdk/android/arm/include/bionic/libc/include/ |
H A D | fcntl.h | 216 * [readahead(2)](http://man7.org/linux/man-pages/man2/readahead.2.html) 217 * initiates readahead for the given file. 221 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/sdk/android/x86/include/bionic/libc/include/ |
H A D | fcntl.h | 216 * [readahead(2)](http://man7.org/linux/man-pages/man2/readahead.2.html) 217 * initiates readahead for the given file. 221 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/sdk/android/riscv64/include/bionic/libc/include/ |
H A D | fcntl.h | 214 * [readahead(2)](https://man7.org/linux/man-pages/man2/readahead.2.html) 215 * initiates readahead for the given file. 219 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/sdk/android/x86_64/include/bionic/libc/include/ |
H A D | fcntl.h | 216 * [readahead(2)](http://man7.org/linux/man-pages/man2/readahead.2.html) 217 * initiates readahead for the given file. 221 ssize_t readahead(int __fd, off64_t __offset, size_t __length);
|