Make expressions like fault=SYSCALL1,SYSCALL2:error=EPERM work as documented, i.e. fail both SYSCALL1 and SYSCALL2 with EPERM. * syscall.c (parse_fault_expression): Remove const qualifier from "name" and "token: variables, as well as from the return value. (qual_fault): Remove const qualifier from "name" variables. Split "name" into comma delimited tokens and pass each token to individual qual_syscall_ex call. (qualify): For QUAL_FAULT options, pass the whole option value to their qualify methods without prior splitting into comma delimited tokens. * tests/fault_injection.test: Check it. * tests/fault_syntax.test: Check empty syscall sets.
This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor 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%