Home
last modified time | relevance | path

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

/tools/testing/selftests/powerpc/ptrace/
Dptrace.h104 struct iovec iov; in ptrace_read_regs() local
109 iov.iov_base = regs; in ptrace_read_regs()
110 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs()
112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
124 struct iovec iov; in ptrace_write_regs() local
129 iov.iov_base = regs; in ptrace_write_regs()
130 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs()
132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
142 struct iovec iov; in show_tar_registers() local
151 iov.iov_base = (u64 *) reg; in show_tar_registers()
[all …]
/tools/io_uring/
Dio_uring-cp.c31 struct iovec iov; member
77 io_uring_prep_readv(sqe, infd, &data->iov, 1, data->offset); in queue_prepped()
79 io_uring_prep_writev(sqe, outfd, &data->iov, 1, data->offset); in queue_prepped()
102 data->iov.iov_base = data + 1; in queue_read()
103 data->iov.iov_len = size; in queue_read()
106 io_uring_prep_readv(sqe, infd, &data->iov, 1, offset); in queue_read()
116 data->iov.iov_base = data + 1; in queue_write()
117 data->iov.iov_len = data->first_len; in queue_write()
197 } else if ((size_t) cqe->res != data->iov.iov_len) { in copy_file()
199 data->iov.iov_base += cqe->res; in copy_file()
[all …]
/tools/testing/selftests/net/
Dipv6_flowlabel.c42 struct iovec iov = {0}; in do_send() local
45 iov.iov_base = (char *)cfg_data; in do_send()
46 iov.iov_len = sizeof(cfg_data); in do_send()
48 msg.msg_iov = &iov; in do_send()
79 struct iovec iov = {0}; in do_recv() local
84 iov.iov_base = data; in do_recv()
85 iov.iov_len = sizeof(data); in do_recv()
87 msg.msg_iov = &iov; in do_recv()
Dtcp_inq.c102 struct iovec iov[1]; in main() local
151 msg.msg_iov = iov; in main()
158 iov[0].iov_base = buf; in main()
159 iov[0].iov_len = BUF_SIZE / 2; in main()
161 if (recvmsg(fd, &msg, 0) != iov[0].iov_len) in main()
170 if (inq != BUF_SIZE - iov[0].iov_len) { in main()
Dso_txtime.c68 struct iovec iov = {0}; in do_send_one() local
73 iov.iov_base = &ts->data; in do_send_one()
74 iov.iov_len = 1; in do_send_one()
76 msg.msg_iov = &iov; in do_send_one()
148 struct iovec iov = {0}; in do_recv_errqueue_timeout() local
153 iov.iov_base = data; in do_recv_errqueue_timeout()
154 iov.iov_len = sizeof(data); in do_recv_errqueue_timeout()
156 msg.msg_iov = &iov; in do_recv_errqueue_timeout()
Dudpgso_bench_tx.c330 struct iovec iov[max_nr_msg]; in send_udp_sendmmsg() local
353 iov[i].iov_base = data + off; in send_udp_sendmmsg()
354 iov[i].iov_len = cfg_mss < left ? cfg_mss : left; in send_udp_sendmmsg()
356 mmsgs[i].msg_hdr.msg_iov = iov + i; in send_udp_sendmmsg()
366 off += iov[i].iov_len; in send_udp_sendmmsg()
367 left -= iov[i].iov_len; in send_udp_sendmmsg()
394 struct iovec iov = {0}; in send_udp_segment() local
399 iov.iov_base = data; in send_udp_segment()
400 iov.iov_len = cfg_payload_len; in send_udp_segment()
402 msg.msg_iov = &iov; in send_udp_segment()
[all …]
Dmsg_zerocopy.c483 struct iovec iov[3] = { {0} }; in do_tx() local
504 iov[0].iov_base = &eth; in do_tx()
505 iov[0].iov_len = sizeof(eth); in do_tx()
525 iov[1].iov_len = setup_iph(&nh.iph, cfg_payload_len); in do_tx()
527 iov[1].iov_len = setup_ip6h(&nh.ip6h, cfg_payload_len); in do_tx()
529 iov[1].iov_base = (void *) &nh; in do_tx()
540 iov[2].iov_base = payload; in do_tx()
541 iov[2].iov_len = cfg_payload_len; in do_tx()
543 msg.msg_iov = &iov[3 - msg.msg_iovlen]; in do_tx()
Dudpgso_bench_rx.c219 struct iovec iov = {0}; in recv_msg() local
223 iov.iov_base = buf; in recv_msg()
224 iov.iov_len = len; in recv_msg()
226 msg.msg_iov = &iov; in recv_msg()
Dudpgso.c456 struct iovec iov = {0}; in send_one() local
459 iov.iov_base = buf; in send_one()
460 iov.iov_len = len; in send_one()
462 msg.msg_iov = &iov; in send_one()
481 iov.iov_len = 1; in send_one()
485 iov.iov_base++; in send_one()
486 iov.iov_len = len - 1; in send_one()
Dnettest.c661 struct iovec iov[2]; in send_msg_cmsg() local
666 iov[0].iov_base = msg; in send_msg_cmsg()
667 iov[0].iov_len = msglen; in send_msg_cmsg()
668 m.msg_iov = iov; in send_msg_cmsg()
745 struct iovec iov[2]; in socket_read_dgram() local
749 .msg_iov = iov, in socket_read_dgram()
758 iov[0].iov_base = (caddr_t)buf; in socket_read_dgram()
759 iov[0].iov_len = sizeof(buf); in socket_read_dgram()
812 iov[0].iov_len = len; in socket_read_dgram()
Dtxtimestamp.c487 struct iovec iov; in do_test() local
596 iov.iov_base = buf; in do_test()
597 iov.iov_len = total_len; in do_test()
619 msg.msg_iov = &iov; in do_test()
/tools/testing/selftests/android/ion/
Dipcsocket.c112 struct iovec iov; in sendtosocket() local
140 iov.iov_base = "OK"; in sendtosocket()
141 iov.iov_len = 2; in sendtosocket()
142 msgh.msg_iov = &iov; in sendtosocket()
168 struct iovec iov; in receivefromsocket() local
193 iov.iov_base = data; in receivefromsocket()
194 iov.iov_len = sizeof(data)-1; in receivefromsocket()
195 msgh.msg_iov = &iov; in receivefromsocket()
/tools/testing/selftests/arm64/fp/
Dsve-ptrace.c74 struct iovec iov; in get_sve() local
88 iov.iov_base = *buf; in get_sve()
89 iov.iov_len = sz; in get_sve()
90 if (ptrace(PTRACE_GETREGSET, pid, NT_ARM_SVE, &iov)) in get_sve()
108 struct iovec iov; in set_sve() local
110 iov.iov_base = (void *)sve; in set_sve()
111 iov.iov_len = sve->size; in set_sve()
112 return ptrace(PTRACE_SETREGSET, pid, NT_ARM_SVE, &iov); in set_sve()
/tools/testing/selftests/breakpoints/
Dbreakpoint_test_arm64.c90 struct iovec iov; in set_watchpoint() local
95 iov.iov_base = &dreg_state; in set_watchpoint()
96 iov.iov_len = offsetof(struct user_hwdebug_state, dbg_regs) + in set_watchpoint()
98 if (ptrace(PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov) == 0) in set_watchpoint()
/tools/perf/util/
Dprobe-file.c903 struct iovec iov[3]; in probe_cache_entry__write() local
912 iov[0].iov_base = (void *)prefix; iov[0].iov_len = 1; in probe_cache_entry__write()
913 iov[1].iov_base = entry->spev; iov[1].iov_len = strlen(entry->spev); in probe_cache_entry__write()
914 iov[2].iov_base = (void *)"\n"; iov[2].iov_len = 1; in probe_cache_entry__write()
915 ret = writev(fd, iov, 3); in probe_cache_entry__write()
916 if (ret < (int)iov[1].iov_len + 2) in probe_cache_entry__write()
920 iov[0].iov_base = (void *)snode->s; in probe_cache_entry__write()
921 iov[0].iov_len = strlen(snode->s); in probe_cache_entry__write()
922 iov[1].iov_base = (void *)"\n"; iov[1].iov_len = 1; in probe_cache_entry__write()
923 ret = writev(fd, iov, 2); in probe_cache_entry__write()
[all …]
/tools/virtio/
Dvringh_test.c528 assert(riov.iov[0].iov_base == __user_addr_max - 1); in main()
529 assert(riov.iov[0].iov_len == 1); in main()
532 assert(wiov.iov[0].iov_base == __user_addr_max - 3); in main()
533 assert(wiov.iov[0].iov_len == 2); in main()
536 assert(wiov.iov[0].iov_base == __user_addr_max - 3); in main()
537 assert(wiov.iov[0].iov_len == 1); in main()
538 assert(wiov.iov[1].iov_base == __user_addr_max - 2); in main()
539 assert(wiov.iov[1].iov_len == 1); in main()
597 assert(riov.iov != host_riov); in main()
/tools/testing/vsock/
Dvsock_diag_test.c183 struct iovec iov = { in send_req() local
190 .msg_iov = &iov, in send_req()
212 struct iovec iov = { in recv_resp() local
219 .msg_iov = &iov, in recv_resp()
/tools/testing/selftests/bpf/
Dtest_sock_addr.c1272 struct iovec iov; in sendmsg_to_server() local
1290 memset(&iov, 0, sizeof(iov)); in sendmsg_to_server()
1291 iov.iov_base = &data; in sendmsg_to_server()
1292 iov.iov_len = sizeof(data); in sendmsg_to_server()
1297 hdr.msg_iov = &iov; in sendmsg_to_server()
1341 struct iovec iov; in recvmsg_from_client() local
1355 memset(&iov, 0, sizeof(iov)); in recvmsg_from_client()
1356 iov.iov_base = data; in recvmsg_from_client()
1357 iov.iov_len = sizeof(data); in recvmsg_from_client()
1362 hdr.msg_iov = &iov; in recvmsg_from_client()
Dtest_sockmap.c477 struct iovec *iov; in msg_alloc_iov() local
480 iov = calloc(iov_count, sizeof(struct iovec)); in msg_alloc_iov()
481 if (!iov) in msg_alloc_iov()
491 iov[i].iov_base = d; in msg_alloc_iov()
492 iov[i].iov_len = iov_length; in msg_alloc_iov()
502 msg->msg_iov = iov; in msg_alloc_iov()
/tools/testing/selftests/uevent/
Duevent_filtering.c85 struct iovec iov = { buf, __UEVENT_BUFFER_SIZE }; in uevent_listener() local
88 &rcv_addr, sizeof(rcv_addr), &iov, 1, in uevent_listener()
/tools/testing/selftests/proc/
Dproc-pid-vm.c153 struct iovec iov[3] = { in make_exe() local
199 if (writev(fd, iov, 3) != sizeof(struct elf64_hdr) + sizeof(struct elf64_phdr) + len) { in make_exe()
/tools/perf/trace/beauty/include/linux/
Dsocket.h403 struct iovec **iov);
407 struct iovec **iov);
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c413 struct iovec iov[] = { in tx_tap() local
419 return writev(fd, iov, ARRAY_SIZE(iov)); in tx_tap()
Dsk_lookup.c364 struct iovec iov = { 0 }; in udp_recv_send() local
370 iov.iov_base = buf; in udp_recv_send()
371 iov.iov_len = sizeof(buf); in udp_recv_send()
375 msg.msg_iov = &iov; in udp_recv_send()
/tools/testing/selftests/vm/
Dprotection_keys.c1127 struct iovec iov; in test_kernel_gup_of_access_disabled_region() local
1136 iov.iov_base = ptr; in test_kernel_gup_of_access_disabled_region()
1137 iov.iov_len = PAGE_SIZE; in test_kernel_gup_of_access_disabled_region()
1138 vmsplice_ret = vmsplice(pipe_fds[1], &iov, 1, SPLICE_F_GIFT); in test_kernel_gup_of_access_disabled_region()