- tprintf("%ld, ", tcp->u_arg[0]);
- symbol = ioctl_lookup(tcp->u_arg[1]);
- if (symbol)
- tprintf("%s", symbol);
- else
- tprintf("%#lx", tcp->u_arg[1]);
+ /* int fd_in */
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ /* loff_t *off_in */
+ print_loff_t(tcp, tcp->u_arg[1]);
+ tprints(", ");
+ /* int fd_out */
+ printfd(tcp, tcp->u_arg[2]);
+ tprints(", ");
+ /* loff_t *off_out */
+ print_loff_t(tcp, tcp->u_arg[3]);
+ tprints(", ");
+ /* size_t len */
+ tprintf("%lu, ", tcp->u_arg[4]);
+ /* unsigned int flags */
+ printflags(splice_flags, tcp->u_arg[5], "SPLICE_F_???");
+ }
+ return 0;
+}
+
+int
+sys_vmsplice(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ /* int fd */
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ /* const struct iovec *iov, unsigned long nr_segs */
+ tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
+ tprintf(", %lu, ", tcp->u_arg[2]);
+ /* unsigned int flags */
+ printflags(splice_flags, tcp->u_arg[3], "SPLICE_F_???");
+ }
+ return 0;
+}
+
+int
+sys_ioctl(struct tcb *tcp)
+{
+ const struct_ioctlent *iop;
+
+ if (entering(tcp)) {
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ iop = ioctl_lookup(tcp->u_arg[1]);
+ if (iop) {
+ tprints(iop->symbol);
+ while ((iop = ioctl_next_match(iop)))
+ tprintf(" or %s", iop->symbol);
+ } else
+ ioctl_print_code(tcp->u_arg[1]);