blob: 24934d45d80f7159991579e282c766822716afea [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)) {
Dmitry V. Levin66a344c2015-07-17 20:37:47 +000011 printaddr(tcp->u_arg[1]);
Dmitry V. Levindb16c522014-12-11 19:21:54 +000012 } 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)) {
Dmitry V. Levin66a344c2015-07-17 20:37:47 +000019 printaddr(tcp->u_arg[3]);
Dmitry V. Levindb16c522014-12-11 19:21:54 +000020 } 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{
Dmitry V. Levin684c9e92015-07-17 20:39:49 +000032 /* arg 1: pid */
33 tprintf("%ld, ", tcp->u_arg[0]);
34 /* arg 2: local iov */
35 tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
36 /* arg 3: local iovcnt */
37 tprintf(", %lu, ", tcp->u_arg[2]);
38 /* arg 4: remote iov */
39 tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0);
40 /* arg 5: remote iovcnt */
41 /* arg 6: flags */
42 tprintf(", %lu, %lu", tcp->u_arg[4], tcp->u_arg[5]);
43
44 return RVAL_DECODED;
Dmitry V. Levindb16c522014-12-11 19:21:54 +000045}