blob: 310223ebf36c55baaca38b184d0cf3fc470c705c [file] [log] [blame]
Dmitry V. Levindb16c522014-12-11 19:21:54 +00001#include "defs.h"
2
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00003SYS_FUNC(process_vm_readv)
Dmitry V. Levindb16c522014-12-11 19:21:54 +00004{
5 if (entering(tcp)) {
6 /* arg 1: pid */
7 tprintf("%ld, ", tcp->u_arg[0]);
8 } else {
9 /* arg 2: local iov */
10 if (syserror(tcp)) {
11 tprintf("%#lx", tcp->u_arg[1]);
12 } else {
13 tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
14 }
15 /* arg 3: local iovcnt */
16 tprintf(", %lu, ", tcp->u_arg[2]);
17 /* arg 4: remote iov */
18 if (syserror(tcp)) {
19 tprintf("%#lx", tcp->u_arg[3]);
20 } else {
21 tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0);
22 }
23 /* arg 5: remote iovcnt */
24 /* arg 6: flags */
25 tprintf(", %lu, %lu", tcp->u_arg[4], tcp->u_arg[5]);
26 }
27 return 0;
28}
29
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000030SYS_FUNC(process_vm_writev)
Dmitry V. Levindb16c522014-12-11 19:21:54 +000031{
32 if (entering(tcp)) {
33 /* arg 1: pid */
34 tprintf("%ld, ", tcp->u_arg[0]);
35 /* arg 2: local iov */
Dmitry V. Levin87af1932015-03-31 21:00:39 +000036 tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
Dmitry V. Levindb16c522014-12-11 19:21:54 +000037 /* arg 3: local iovcnt */
38 tprintf(", %lu, ", tcp->u_arg[2]);
39 /* arg 4: remote iov */
Dmitry V. Levin87af1932015-03-31 21:00:39 +000040 tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0);
Dmitry V. Levindb16c522014-12-11 19:21:54 +000041 /* arg 5: remote iovcnt */
42 /* arg 6: flags */
43 tprintf(", %lu, %lu", tcp->u_arg[4], tcp->u_arg[5]);
44 }
45 return 0;
46}