]> granicus.if.org Git - strace/commit
Prepare for introduction of -e inject= option
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 8 Feb 2017 09:28:07 +0000 (09:28 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 8 Feb 2017 09:28:07 +0000 (09:28 +0000)
commitd5152aae15bbc4a34242ec02fc822ea6be019415
treecf606dc15eeaf75e2bcce96f5bf1bf2d4488a922
parent779a28e11789a3c6c7b44f8c808c46d93ff0c3ab
Prepare for introduction of -e inject= option

As -e fault= injection syntax has been extended to configure various
kinds of injections besides fault injection, the original option name
bacame too narrow.

This change renames internal constants, types, and functions from
"fault" to more generic inject/tamper ones.

* defs.h (fault_opts): Rename to inject_opts.
(FAULT_OPTS_RVAL_DEFAULT): Rename to INJECT_OPTS_RVAL_DEFAULT.
(FAULT_OPTS_RVAL_DISABLE): Rename to INJECT_OPTS_RVAL_DISABLE.
(struct tcb): Rename fault_vec field to inject_vec.
(TCB_FAULT_INJ): Rename to TCB_TAMPERED.
(QUAL_FAULT): Rename to QUAL_INJECT.
(fault_vec): Rename to inject_vec.
All users changed.
* qualify.c (fault_set): Rename to inject_set.
(parse_fault_token): Rename to parse_inject_token.
(parse_fault_expression): Rename to parse_inject_expression.
All callers changed.
* syscall.c (fault_vec): Rename to inject_vec.
(tcb_fault_opts): Rename to tcb_inject_opts.
(inject_syscall_fault_entering): Rename to tamper_with_syscall_entering.
(update_syscall_fault_exiting): Rename to tamper_with_syscall_exiting.
(syscall_fault_injected): Rename to syscall_tampered.
All callers changed.
defs.h
qualify.c
strace.c
syscall.c