- if (entering(tcp)) {
- 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]);
- ioctl_decode(tcp, tcp->u_arg[1], tcp->u_arg[2]);
- }
- else {
- if (ioctl_decode(tcp, tcp->u_arg[1], tcp->u_arg[2]) == 0)
- tprintf(", %#lx", tcp->u_arg[2]);
- }
- return 0;
+#include "xlat/splice_flags.h"
+
+SYS_FUNC(tee)
+{
+ /* int fd_in */
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ /* int fd_out */
+ printfd(tcp, tcp->u_arg[1]);
+ tprints(", ");
+ /* size_t len */
+ tprintf("%" PRI_klu ", ", tcp->u_arg[2]);
+ /* unsigned int flags */
+ printflags(splice_flags, tcp->u_arg[3], "SPLICE_F_???");
+
+ return RVAL_DECODED;
+}
+
+SYS_FUNC(splice)
+{
+ /* int fd_in */
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ /* loff_t *off_in */
+ printnum_int64(tcp, tcp->u_arg[1], "%" PRId64);
+ tprints(", ");
+ /* int fd_out */
+ printfd(tcp, tcp->u_arg[2]);
+ tprints(", ");
+ /* loff_t *off_out */
+ printnum_int64(tcp, tcp->u_arg[3], "%" PRId64);
+ tprints(", ");
+ /* size_t len */
+ tprintf("%" PRI_klu ", ", tcp->u_arg[4]);
+ /* unsigned int flags */
+ printflags(splice_flags, tcp->u_arg[5], "SPLICE_F_???");
+
+ return RVAL_DECODED;
+}
+
+SYS_FUNC(vmsplice)
+{
+ /* 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], IOV_DECODE_STR);
+ tprintf(", %" PRI_klu ", ", tcp->u_arg[2]);
+ /* unsigned int flags */
+ printflags(splice_flags, tcp->u_arg[3], "SPLICE_F_???");
+
+ return RVAL_DECODED;