[PATCH v2 0/3] Stage output for -z and new -Z options

Paul Chaignon paul.chaignon at gmail.com
Tue Apr 2 19:56:07 UTC 2019


This patch set adds a new -Z option to print only failing syscalls and
fixes the current behavior of the -z option.  The output is staged, using
open_memstream, until the syscall is known to be successful or failing.

The first patch adds the -Z option, the second implements the output
staging, and the last adds two test cases.

Changelogs:
  Changes in v2:
    - Fix stage_output.c added to wrong patch.

Paul Chaignon (3):
  Option to print only failing syscalls
  Stage output for -z and -Z options
  tests: check -z and -Z options

 Makefile.am                 |  1 +
 configure.ac                |  1 +
 defs.h                      | 16 ++++++++
 stage_output.c              | 74 +++++++++++++++++++++++++++++++++++++
 strace.c                    | 69 +++++++++++++++++++++++++++++-----
 syscall.c                   | 23 +++++++-----
 tests/.gitignore            |  2 +
 tests/gen_tests.in          |  2 +
 tests/open-Z.c              | 59 +++++++++++++++++++++++++++++
 tests/open-z.c              | 58 +++++++++++++++++++++++++++++
 tests/pure_executables.list |  2 +
 11 files changed, 288 insertions(+), 19 deletions(-)
 create mode 100644 stage_output.c
 create mode 100644 tests/open-Z.c
 create mode 100644 tests/open-z.c

-- 
2.17.1



More information about the Strace-devel mailing list