[PATCHv3 1/2] strace: implement signal injection

Dmitry V. Levin ldv at altlinux.org
Wed Feb 8 17:54:54 UTC 2017

On Wed, Dec 28, 2016 at 09:53:03PM +0300, Dmitry V. Levin wrote:
> On Wed, Dec 28, 2016 at 05:22:36PM +0100, Seraphime Kirkovski wrote:
> > This extends the fault injection capability with :signal=SIG option
> > which injects a signal on entering each syscall from the specified set.
> > 
> > :signal and :error options are complementary, if they are both specified
> > the syscall will be fault injected as usual and the specified signal
> > will be delivered to the tracee.
> > 
> > Signed-off-by: Seraphime Kirkovski <kirkseraph at gmail.com>
> On Wed, Dec 28, 2016 at 05:23:03PM +0100, Seraphime Kirkovski wrote:
> > Signed-off-by: Seraphime Kirkovski <kirkseraph at gmail.com>
> > ---
> > 
> > Not sure exactly how to put in the NEWS file. Feel free to change
> > or remove the hunk if you dislike it.
> > 
> > This should take in account your edits.
> Thanks, I've merged both patches after a bit more editing of commit
> messages and documentation.
> I still feel pleasantly surprised about implementation simplicity.

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

After some discussions, I moved signal injection and syscall return value
injection features to a new -e inject= option intended for all kinds of
injections supported by strace.

Being a part of released strace version, -e fault= options remains
supported as an interface to specify syscall fault injection.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170208/6d336cfa/attachment.bin>

More information about the Strace-devel mailing list