As the last argument of getsockopt syscall has read-write semantics, print both user and kernel values when they differ. * net.c (SYS_FUNC(getsockopt)): On entering syscall, fetch and save the length specified to the kernel. On error, print the length saved on entering. When the saved length and the length returned by the kernel differ, print both values. * NEWS: Mention this. * tests/net-icmp_filter.c (main): Update expected output.
strace - the linux syscall tracer
This is strace -- a diagnostic, debugging and instructional userspace utility with a traditional command-line interface for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.
See the file NEWS for information on what has changed in recent versions.
Please read the file INSTALL-git for installation instructions.
The user discussion and development of strace take place on the strace mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to strace-devel@lists.sourceforge.net. The mailing list archives are available at https://sourceforge.net/p/strace/mailman/strace-devel/ and other archival sites.