Home
last modified time | relevance | path

Searched refs:pread (Results 1 – 25 of 50) sorted by relevance

12

/linux/tools/testing/selftests/intel_pstate/
H A Daperf.c66 pread(fd, &old_tsc, sizeof(old_tsc), 0x10); in main()
67 pread(fd, &old_aperf, sizeof(old_mperf), 0xe7); in main()
68 pread(fd, &old_mperf, sizeof(old_aperf), 0xe8); in main()
78 pread(fd, &new_tsc, sizeof(new_tsc), 0x10); in main()
79 pread(fd, &new_aperf, sizeof(new_mperf), 0xe7); in main()
80 pread(fd, &new_mperf, sizeof(new_aperf), 0xe8); in main()
H A Dmsr.c36 pread(fd, &msr, sizeof(msr), 0x199); in main()
/linux/include/media/
H A Ddvb_ringbuffer.h44 ssize_t pread; member
126 ((rbuf)->data[((rbuf)->pread + (offs)) % (rbuf)->size])
135 (rbuf)->pread = ((rbuf)->pread + (num)) % (rbuf)->size;\
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_veristat.c42 ssize_t len = pread(fix->fd, fix->output, fix->sz - 1, 0); in read_output()
205 pread(fix->fd, fix->output, fix->sz, 0); in test_array_index_for_non_array()
212 pread(fix->fd, fix->output, fix->sz, 0); in test_array_index_for_non_array()
227 pread(fix->fd, fix->output, fix->sz, 0); in test_no_array_index_for_array()
234 pread(fix->fd, fix->output, fix->sz, 0); in test_no_array_index_for_array()
/linux/tools/testing/selftests/turbostat/
H A Dsmi_aperf_mperf.py6 from os import pread
58 if len(pread(file_msr.fileno(), 8, MSR_IA32_MPERF)) != 8:
61 if len(pread(file_msr.fileno(), 8, MSR_IA32_APERF)) != 8:
H A Dadded_perf_counters.py6 from os import pread
/linux/tools/testing/selftests/mm/
H A Dvm_util.c31 ret = pread(fd, &entry, sizeof(entry), pfn * sizeof(entry)); in pagemap_get_entry()
505 if (pread(pagemap_fd, ent, sizeof(ent), in uffd_register_with_ioctls()
521 count = pread(kpageflags_fd, flags, sizeof(*flags), in uffd_register()
895 ret = pread(fd, buf, sizeof(buf), 0); in read_file()
919 read_size = pread(proc_self_ksm_stat_fd, buf, sizeof(buf) - 1, 0); in __write_file()
945 ret = pread(proc_self_ksm_merging_pages_fd, buf, sizeof(buf) - 1, 0); in read_num()
964 ret = pread(ksm_full_scans_fd, buf, sizeof(buf) - 1, 0); in write_num_ignore_einval()
H A Dmemfd_secret.c53 (pread(fd, buf, sizeof(buf), 0) >= 0) || in test_file_apis()
/linux/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c54 ssize_t consumed = pread(fd, buf, size, 0); in dev_papr_vpd_get_handle_all()
203 ssize_t consumed = pread(fd, bufs[i], size, 0); in papr_vpd_reread()
286 ssize_t consumed = pread(fd, buf, size, 0); in papr_vpd_system_loc_code()
/linux/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c44 ret = pread(stats_fd, id, header.name_size, sizeof(header)); in stats_test()
156 ret = pread(stats_fd, stats_data, size_data, header.data_offset); in stats_test()
H A Daccess_tracking_perf_test.c115 TEST_ASSERT(pread(fd, &value, sizeof(value), offset) == sizeof(value), in pread_u64()
116 "pread from %s offset 0x%" PRIx64 " failed!", in pread_u64()
/linux/tools/testing/selftests/proc/
H A Dproc-uptime.h45 rv = pread(fd, buf, sizeof(buf), 0); in proc_uptime()
/linux/tools/lib/perf/
H A Dlib.c46 ssize_t ret = pread(fd, buf, left, offs); in preadn()
/linux/tools/testing/selftests/coredump/
H A Dcoredump_test_helpers.c374 if (pread(fd, &ehdr, sizeof(ehdr), 0) != sizeof(ehdr)) { in is_elf_core()
835 ssize_t chunk = pread(ctx->fd_body, buffer, sizeof(buffer), pos); in compact_build()
928 if (pread(fd, &ehdr, sizeof(ehdr), 0) != sizeof(ehdr)) { in ElfW()
946 if (pread(fd, phdr, size, ehdr.e_phoff) != (ssize_t)size) { in ElfW()
1086 if (pread(fd, buffer, chunk, offset) != (ssize_t)chunk || in compare_range()
1087 pread(fd_ref, buffer_ref, chunk, offset_ref) != (ssize_t)chunk) { in compare_range()
1117 if (pread(fd, buffer, chunk, offset) != (ssize_t)chunk) { in check_zero_range()
1475 ret = pread(fd, buf, len, addr); in peer_read_mem()
2063 if (pread(fd, phdr, (size_t)nphdr * sizeof(*phdr), (off_t)eh.e_phoff) != in coredump_expected_size()
/linux/tools/hv/
H A Dhv_fcopy_daemon.c
H A Dhv_fcopy_uio_daemon.c527 ret = pread(fcopy_fd, &tmp, sizeof(int), 0); in main()
/linux/tools/testing/selftests/kvm/x86/
H A Daperfmperf_test.c43 rc = pread(msr_fd, &data, sizeof(data), msr); in read_dev_msr()
/linux/tools/perf/util/
H A Ddso.c1162 * pread may leave cache->size smaller. For a regular file a in dso__data_size()
1163 * short pread only happens at end-of-file, so an offset past in dso__data_size()
1165 * pread() at that offset would return, and cached_io() then in dso__data_size()
1199 ret = pread(dso__data(dso)->fd, data, DSO__DATA_CACHE_SIZE, offset); in dso__data_read_offset()
1434 if (pread(fd, &e_ident, sizeof(e_ident), 0) != sizeof(e_ident)) in machine__findnew_kernel()
1464 if (pread(fd, &e_machine, sizeof(e_machine), 18) != sizeof(e_machine)) in dso__set_long_name_id()
1483 if (pread(fd, e_flags, sizeof(*e_flags), offset) != sizeof(*e_flags)) { in __dso_id__cmp()
2129 count = pread(fd, code_buf, len, data.offset);
/linux/tools/testing/selftests/kvm/arm64/
H A Dsea_to_user.c68 if (pread(fd, &pinfo, sizeof(pinfo), offset) != sizeof(pinfo)) { in translate_hva_to_hpa()
/linux/arch/um/drivers/
H A Dvfio_user.c285 if (pread(dev->device, buf, size, dev->region[index].offset + offset) < 0) in vfio_region_read()
/linux/tools/testing/selftests/net/af_unix/
H A Dscm_rights_denial_lsm.c208 if (pread(fd, got, sizeof(got) - 1, 0) < 0) in check_secret()
/linux/Documentation/translations/zh_TW/filesystems/
H A Dsysfs.txt201 向後搜索到零或使用‘0’偏移執行一個pread(2)操作,show()方法將
/linux/Documentation/translations/zh_CN/filesystems/
H A Dsysfs.txt198 向后搜索到零或使用‘0’偏移执行一个pread(2)操作,show()方法将
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_userptr.c395 .pread = i915_gem_userptr_pread,
/linux/tools/testing/selftests/cgroup/
H A Dcgroup_util.c

12