Go to file
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
debian Prepare for 4.9 release 2014-08-15 13:14:15 +00:00
linux Add -yy option: print ip and port associated with socket descriptors 2014-09-17 20:03:38 +00:00
m4 Remove unused AC_OFF_T_IS_LONG_LONG configure check 2013-11-12 15:43:06 +00:00
qemu_multiarch_testing Use bootstrap script consistently 2014-05-30 21:31:08 +00:00
test Add a test for the latest select decoding fix 2013-11-05 23:35:56 +00:00
tests tests: cleanup checks for basic programs 2014-09-23 01:51:05 +00:00
xlat fsmagic: sort array by value and use bsearch for faster lookup 2014-09-22 00:31:06 +00:00
.gitignore Ignore more files 2013-05-02 22:06:12 +00:00
.mailmap Remove duplicate names from CREDITS 2012-05-01 21:51:38 +00:00
aio.c Use external libaio.h 2014-09-08 16:43:36 +00:00
AUTHORS 2002-12-22 Roland McGrath <roland@redhat.com> 2002-12-30 00:51:30 +00:00
bjm.c Fix delete_module decoding 2014-06-04 16:29:18 +00:00
block.c Generate xlat/*.in files 2014-05-30 21:40:03 +00:00
bootstrap Use bootstrap script consistently 2014-05-30 21:31:08 +00:00
build_static_example.sh Use bootstrap script consistently 2014-05-30 21:31:08 +00:00
ChangeLog-CVS Generate ChangeLog from git log 2009-07-08 21:01:21 +00:00
configure.ac Enhance sysinfo decoding 2014-09-29 23:29:56 +00:00
COPYING Rename COPYRIGHT to COPYING 2013-05-17 23:18:55 +00:00
count.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
CREDITS.in Remove duplicate names from CREDITS 2012-05-01 21:51:38 +00:00
defs.h Add a function for dumping iovec in msghdr used in sendmsg and recvmsg 2014-11-01 01:46:06 +00:00
desc.c decode_select: fix potential use of an uninitialized variable 2014-09-09 22:51:05 +00:00
dirent.c Move dirent related parsers to a separate file 2014-09-11 22:40:37 +00:00
errnoent.sh Tidy up includes and copyright notices, fix indentation 2012-03-16 12:02:22 +01:00
fanotify.c Compress blank lines 2014-05-30 22:10:21 +00:00
file.c Don't risk truncating open flags by using mode_t 2014-10-03 22:01:37 +00:00
generate_xlat_in.sh Generate xlat/*.in files 2014-05-30 21:40:03 +00:00
git-set-file-times * git-set-file-times: Import from rsync. 2009-10-09 23:07:28 +00:00
git-version-gen build: introduce git-version-gen 2013-04-30 23:52:12 +00:00
gitlog-to-changelog gitlog-to-changelog: update from gnulib 2011-11-05 13:32:27 +00:00
HACKING-scripts HACKING-scripts: new doc file by Mike Frysinger 2009-02-23 07:56:01 +00:00
inotify.c Compress blank lines 2014-05-30 22:10:21 +00:00
INSTALL Remove and update documentation 2012-02-25 15:29:21 +01:00
io.c Fix preadv/pwritev offset decoding on ILP32 architectures 2014-08-07 11:42:46 +00:00
ioctl.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
ioprio.c Generate xlat/*.in files 2014-05-30 21:40:03 +00:00
ipc.c Compress blank lines 2014-05-30 22:10:21 +00:00
kexec.c Compress blank lines 2014-05-30 22:10:21 +00:00
keyctl.c Generate xlat/*.in files 2014-05-30 21:40:03 +00:00
ldt.c Refactor LDT decoding 2014-04-10 15:29:13 +00:00
loop.c Compress blank lines 2014-05-30 22:10:21 +00:00
make-dist Use bootstrap script consistently 2014-05-30 21:31:08 +00:00
Makefile.am Move sysinfo parser to a separate file 2014-09-29 23:13:05 +00:00
mem.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
mtd.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
net.c Add a function for dumping iovec in msghdr used in sendmsg and recvmsg 2014-11-01 01:46:06 +00:00
NEWS maint: post-release administrivia 2014-08-19 11:34:44 +00:00
pathtrace.c renameat2: add decoding support 2014-08-15 00:06:06 +00:00
process.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
ptp.c Compress blank lines 2014-05-30 22:10:21 +00:00
quota.c Compress blank lines 2014-05-30 22:10:21 +00:00
README Rename COPYRIGHT to COPYING 2013-05-17 23:18:55 +00:00
README-hacking doc: describe documentation policy 2012-05-03 01:44:49 +00:00
README-linux Cleanup trailing whitespaces and indentation that uses spaces before tabs 2009-07-08 14:57:27 +00:00
README-linux-ptrace README-linux-ptrace: correct the description of suppressed signals 2012-02-09 19:57:52 +01:00
reboot.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
resource.c Move sysinfo parser to a separate file 2014-09-29 23:13:05 +00:00
scsi.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
signal.c Include <linux/ptrace.h> regardless of <sys/reg.h> existence 2014-10-31 23:04:59 +00:00
signalent.sh Tidy up includes and copyright notices, fix indentation 2012-03-16 12:02:22 +01:00
sock.c sock: decode SIOCSIFNAME on entering syscall 2014-10-31 22:59:19 +00:00
socketutils.c Add -yy option: print ip and port associated with socket descriptors 2014-09-17 20:03:38 +00:00
statfs.c Move statfs related parsers to a separate file 2014-09-22 00:31:23 +00:00
strace-graph Tidy up includes and copyright notices, fix indentation 2012-03-16 12:02:22 +01:00
strace-log-merge strace-log-merge: fix file suffix calculation 2012-03-26 12:10:01 +00:00
strace.1 Add -yy option: print ip and port associated with socket descriptors 2014-09-17 20:03:38 +00:00
strace.c Add -yy option: print ip and port associated with socket descriptors 2014-09-17 20:03:38 +00:00
strace.spec Prepare for 4.9 release 2014-08-15 13:14:15 +00:00
stream.c Generate xlat/*.in files 2014-05-30 21:40:03 +00:00
syscall.c Add a function for dumping iovec in msghdr used in sendmsg and recvmsg 2014-11-01 01:46:06 +00:00
syscallent.sh Tidy up includes and copyright notices, fix indentation 2012-03-16 12:02:22 +01:00
sysinfo.c Enhance sysinfo decoding 2014-09-29 23:29:56 +00:00
system.c Fix compilation warnings reported by gcc -Wsign-compare 2014-09-17 19:18:18 +00:00
term.c Compress blank lines 2014-05-30 22:10:21 +00:00
time.c Compress blank lines 2014-05-30 22:10:21 +00:00
unwind.c unwind: ignore memory mappings that have no PROT_EXEC bit set 2014-06-13 15:58:00 +00:00
util.c Include <linux/ptrace.h> regardless of <sys/reg.h> existence 2014-10-31 23:04:59 +00:00
vsprintf.c Fix build with Bionic libc 2014-02-26 00:01:00 +00:00
xlate.el Tidy up includes and copyright notices, fix indentation 2012-03-16 12:02:22 +01: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.