This is a preparation for the future introduction of cross-NS PID derivation, which would enable us to print fd information for fds related to all processes, not just traced ones. Note the change in output type for idx1/idx2 in KCMP_FILE command from unsigned to int, it follows printfd output format. * kcmp.c (printpidfd): New function. (PRINT_FIELD_PIDFD): New macro. (SYS_FUNC(kcmp)) <case KCMP_FILE>: Use printpidfd for printing idx1/idx2, as they are fds, after all.
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.