Dmitry V. Levin
768d7cb78f
Split scsi.c
Move decoders of SG_IO v3 and v4 APIs into separate files, compile generic SG_IO decoder unconditionally. * sg_io_v3.c: New file. * sg_io_v4.c: Likewise. * Makefile.am (strace_SOURCES): Add them. * defs.h (decode_sg_io_v3, decode_sg_io_v4): New prototypes. * ioctl.c (ioctl_decode): Remove [HAVE_SCSI_SG_H] condition. * scsi.c: (print_sg_io_res): Remove. (print_sg_io_req): Rename to decode_sg_io, replace print_sg_io_v3_req with decode_sg_io_v3, replace print_sg_io_v4_req with decode_sg_io_v4, compile uncoditionally. (scsi_ioctl): Replace print_sg_io_req and print_sg_io_res with decode_sg_io, compile uncoditionally. Move [HAVE_SCSI_SG_H] code to sg_io_v3.c. Move [HAVE_LINUX_BSG_H] code to sg_io_v4.c.
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 send bug reports and enhancements to the strace mailing list.
Description
Languages
C
92.2%
Shell
3.4%
M4
1.4%
Makefile
0.8%
Roff
0.7%
Other
1.5%