Output iovec length in vmsplice and process_vm_readv decoders

* io.c (sys_vmsplice): Output iovec length.
* process.c (sys_process_vm_readv): Likewise.
This commit is contained in:
Дмитрий Левин 2012-03-10 14:03:25 +00:00
parent 8829365654
commit 0bfd74436d
2 changed files with 9 additions and 8 deletions

2
io.c
View File

@ -361,7 +361,7 @@ sys_vmsplice(struct tcb *tcp)
tprints(", ");
/* const struct iovec *iov, unsigned long nr_segs */
tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
tprints(", ");
tprintf(", %lu, ", tcp->u_arg[2]);
/* unsigned int flags */
printflags(splice_flags, tcp->u_arg[3], "SPLICE_F_???");
}

View File

@ -2754,22 +2754,23 @@ sys_process_vm_readv(struct tcb *tcp)
/* arg 1: pid */
tprintf("%ld, ", tcp->u_arg[0]);
} else {
/* args 2,3: local iov,cnt */
/* arg 2: local iov */
if (syserror(tcp)) {
tprintf("%#lx, %lu",
tcp->u_arg[1], tcp->u_arg[2]);
tprintf("%#lx", tcp->u_arg[1]);
} else {
tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
}
tprints(", ");
/* args 4,5: remote iov,cnt */
/* arg 3: local iovcnt */
tprintf(", %lu, ", tcp->u_arg[2]);
/* arg 4: remote iov */
if (syserror(tcp)) {
tprintf("%#lx, %lu", tcp->u_arg[3], tcp->u_arg[4]);
tprintf("%#lx", tcp->u_arg[3]);
} else {
tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0);
}
/* arg 5: remote iovcnt */
/* arg 6: flags */
tprintf(", %lu", tcp->u_arg[5]);
tprintf(", %lu, %lu", tcp->u_arg[4], tcp->u_arg[5]);
}
return 0;
}