Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 30) sorted by relevance

12

/tools/testing/selftests/vm/
Dcompaction_test.c111 lseek(fd, 0, SEEK_SET); in check_compaction()
120 lseek(fd, 0, SEEK_SET); in check_compaction()
142 lseek(fd, 0, SEEK_SET); in check_compaction()
/tools/testing/selftests/kvm/lib/
Delf.c80 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get()
141 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load()
184 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
/tools/perf/util/
Dsymbol-minimal.c111 fseek(fp, 0, SEEK_SET); in filename__read_build_id()
131 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
155 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
182 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
206 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
303 if (lseek(fd, 0, SEEK_SET)) in fd__is_64_bit()
Dheader.c2027 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1) in perf_header__read_build_ids()
2883 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) { in perf_file_section__fprintf_info()
2970 lseek(ff->fd, (*p)->offset, SEEK_SET); in do_write_feat()
3007 lseek(fd, sec_start + sec_size, SEEK_SET); in perf_header__adds_write()
3014 lseek(fd, sec_start, SEEK_SET); in perf_header__adds_write()
3061 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header()
3116 lseek(fd, 0, SEEK_SET); in perf_session__write_header()
3122 lseek(fd, header->data_offset + header->data_size, SEEK_SET); in perf_session__write_header()
3161 lseek(fd, header->feat_offset, SEEK_SET); in perf_header__process_sections()
3300 lseek(fd, 0, SEEK_SET); in perf_file_header__read()
[all …]
Ddata.c394 if (lseek(data->file.fd, pos, SEEK_SET) == (off_t)-1) { in perf_data__switch()
Dsession.c1532 lseek(fd, file_offset, SEEK_SET); in perf_session__process_user_event()
1544 lseek(fd, file_offset + event->header.size, SEEK_SET); in perf_session__process_user_event()
1622 if (lseek(fd, file_offset, SEEK_SET) == (off_t)-1 || in perf_session__peek_event()
Dprobe-file.c925 ret = lseek(pcache->fd, 0, SEEK_SET); in probe_cache__commit()
Dsymbol-elf.c1317 if (lseek(to, to_offs, SEEK_SET) != to_offs) in copy_bytes()
1320 if (lseek(from, from_offs, SEEK_SET) != from_offs) in copy_bytes()
/tools/power/acpi/tools/ec/
Dec_access.c151 lseek(fd, 0, SEEK_SET); in dump_ec()
180 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val()
196 error = lseek(fd, byte_offset, SEEK_SET); in write_ec_val()
/tools/testing/selftests/sparc64/drivers/
Dadi-test.c480 offset_out = seek_adi(fd, offset_in, SEEK_SET); in test4_lseek()
487 offset_out = seek_adi(fd, offset_in, SEEK_SET); in test4_lseek()
532 oret = seek_adi(fd, offset, SEEK_SET); in test5_rw_aligned_1byte()
542 oret = seek_adi(fd, offset, SEEK_SET); in test5_rw_aligned_1byte()
579 oret = seek_adi(fd, offset, SEEK_SET); in test6_rw_aligned_9434bytes()
591 oret = seek_adi(fd, offset, SEEK_SET); in test6_rw_aligned_9434bytes()
633 oret = seek_adi(fd, offset, SEEK_SET); in test7_rw_aligned_14963bytes()
645 oret = seek_adi(fd, offset, SEEK_SET); in test7_rw_aligned_14963bytes()
/tools/power/acpi/common/
Dcmfsize.c54 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size()
/tools/testing/selftests/proc/
Dproc-loadavg-001.c64 lseek(fd, 0, SEEK_SET); in main()
/tools/leds/
Dled_hw_brightness_mon.c73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
/tools/testing/selftests/powerpc/dscr/
Ddscr.h86 lseek(fd, 0, SEEK_SET); in get_default_dscr()
/tools/perf/ui/
Dbrowser.c112 case SEEK_SET: in ui_browser__list_head_seek()
144 case SEEK_SET: in ui_browser__rb_tree_seek()
259 browser->seek(browser, 0, SEEK_SET); in ui_browser__reset_index()
383 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
611 case SEEK_SET: in ui_browser__argv_seek()
/tools/perf/tests/
Dbpf.c52 lseek(fds[i % 2], i, (i / 2) % 2 ? SEEK_CUR : SEEK_SET); in llseek_loop()
53 lseek(fds[(i + 1) % 2], i, (i / 2) % 2 ? SEEK_CUR : SEEK_SET); in llseek_loop()
/tools/testing/selftests/net/
Dtcp_fastopen_backup_key.c61 lseek(proc_fd, 0, SEEK_SET); in get_keys()
86 lseek(proc_fd, 0, SEEK_SET); in set_keys()
/tools/include/uapi/linux/
Dfs.h43 #define SEEK_SET 0 /* seek relative to beginning of file */ macro
/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c409 fseek(file, 0, SEEK_SET); in osl_find_rsdp_via_efi_by_keyword()
1217 fseek(table_file, file_offset, SEEK_SET); in osl_read_table_from_file()
1265 fseek(table_file, file_offset, SEEK_SET); in osl_read_table_from_file()
/tools/testing/selftests/exec/
Dexecveat.c258 lseek(fd, 10, SEEK_SET); in run_tests()
/tools/testing/selftests/bpf/
Dtest_progs.c59 fseeko(stdout, 0, SEEK_SET); /* rewind */ in dump_test_log()
Dtest_sysctl.c1491 if (test->seek && lseek(fd, test->seek, SEEK_SET) == -1) { in access_sysctl()
/tools/hv/
Dhv_kvp_daemon.c123 struct flock fl = {F_WRLCK, SEEK_SET, 0, 0, 0}; in kvp_acquire_lock()
135 struct flock fl = {F_UNLCK, SEEK_SET, 0, 0, 0}; in kvp_release_lock()
/tools/perf/
Dbuiltin-inject.c694 lseek(fd, output_data_offset, SEEK_SET); in __cmd_inject()
/tools/include/nolibc/
Dnolibc.h239 #define SEEK_SET 0 macro

12