* basic_actions.c (not_injected, apply_inject, parse_inject_common, parse_inject, apply_fault, parse_fault): New functions. * defs.h (struct inject_opts): Add init flag. (qual_flags): Remove declaration. * filter_action.c (action_types): Add inject and fault action types. (set_filter_action_priv_data): New function. * filter_qualify.c (inject_set): Remove variable. (parse_inject_expression): Remove function. (parse_inject_common_args): Add function for inject/fault arguments parsing. (qualify_inject_common): Use parse_inject_common_args instead of parse_inject_expression, use new filtering API. (qualify_fault, qualify_inject): Remove "argument" from description argument of qualify_inject_common. (qual_flags): Remove function. * filter.h (parse_inject_common_args, not_injected, set_filter_action_priv_data): New declarations. (DECL_FILTER_ACTION): Declare inject and fault actions. (DECL_FILTER_ACTION_PARSER): Declare inject and fault action parsers. * strace.c (trace_syscall): Call filter_syscall only when tcp->qual_flg is empty. * syscall.c (decode_socket_subcall): Remove qual_flags from decoder. (decode_ipc_subcall): Likewise. (decode_mips_subcall): Likewise. (get_scno): Likewise. (inject_vec, tamper_with_syscall_entering): Remove inject_vec support code. [ldv: fix segfault in parse_inject_common_args] [ldv: simplify *_qualify_mode]
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.strace.io. The mailing list archives are available at https://lists.strace.io/pipermail/strace-devel/ and other archival sites.
The GIT repository of strace is available at GitHub and GitLab.
The latest binary strace packages are available in many repositories, including OBS, Fedora rawhide, and Sisyphus.