Masatake YAMATO 02f9f6b386 Add a function for dumping iovec in msghdr used in sendmsg and recvmsg
Here is an example session:

    $ ./strace -e write=all ip link change dev enp0s25 mtu 1501 > /dev/null
    sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"(...
     * 40 bytes in buffer 0
     | 00000  28 00 00 00 10 00 05 00  d0 d9 aa 53 00 00 00 00  (..........S.... |
     | 00010  00 00 00 00 02 00 00 00  00 00 00 00 00 00 00 00  ................ |
     | 00020  08 00 04 00 dd 05 00 00                           ........         |
    ...

    $ ./strace -e read=all ip link show > /dev/null
    recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"...
     * 8192 bytes in buffer 0
     | 00000  34 00 00 00 02 00 00 00  00 00 00 00 ff 23 00 00  4............#.. |
     | 00010  ff ff ff ff 20 00 00 00  10 00 05 00 00 00 00 00  .... ........... |
    ...

* defs.h (dumpiov_in_msghdr): New prototype.
* net.c (extractmsghdr): New function derived from printmsghdr.
(printmsghdr): Use extractmsghdr.
(dumpiov_in_msghdr): New function.
* syscall.c (dumpio) [HAVE_SENDMSG]: Call dumpiov_in_msghdr for recvmsg
and sendmsg syscalls.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2014-11-01 01:46:06 +00:00
2014-08-15 13:14:15 +00:00
2013-05-02 22:06:12 +00:00
2012-05-01 21:51:38 +00:00
2014-09-08 16:43:36 +00:00
2014-06-04 16:29:18 +00:00
2014-05-30 21:40:03 +00:00
2014-05-30 21:31:08 +00:00
2009-07-08 21:01:21 +00:00
2014-09-29 23:29:56 +00:00
2013-05-17 23:18:55 +00:00
2012-05-01 21:51:38 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 21:40:03 +00:00
2014-05-30 22:10:21 +00:00
2012-02-25 15:29:21 +01:00
2014-05-30 21:40:03 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 21:40:03 +00:00
2014-04-10 15:29:13 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 21:31:08 +00:00
2014-08-19 11:34:44 +00:00
2014-08-15 00:06:06 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 22:10:21 +00:00
2013-05-17 23:18:55 +00:00
2014-08-15 13:14:15 +00:00
2014-05-30 21:40:03 +00:00
2014-09-29 23:29:56 +00:00
2014-05-30 22:10:21 +00:00
2014-05-30 22:10:21 +00:00
2014-02-26 00:01:00 +00:00

This is strace, a system call tracer for Linux.

strace is released under a Berkeley-style license at the request
of Paul Kranenburg; see the file COPYING for details.

See the file CREDITS for a list of authors and other contributors.

See the file INSTALL for compilation and installation instructions.

See the file NEWS for information on what has changed in recent
versions.

You can get the latest version of strace from its homepage at
http://sourceforge.net/projects/strace/ .

Please send bug reports and enhancements to the strace
mailinglist at strace-devel@lists.sourceforge.net.
Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%