[PATCH v2 0/6] New filtering architecture
Nikolay Marchuk
marchuk.nikolay.a at gmail.com
Tue Jun 27 07:48:42 UTC 2017
These patches implement new filtering architecture. Currently supported actions:
trace, inject, fault, read, write, raw, abbrev, verbose. Currently supported
filters: syscall, fd. New option for new filters is -m "...".
Changes in filtering language:
* Delimiter of action arguments is now ';'.
* Supported logical operators: and, or, not. Also C-like forms of these
operators are supported: &&, ||, !.
* Syscall filter accepts syscalls' set, class or regex with old set description
syntax.
Changes since v1:
* qualify.c is now splitted in separate commit.
Nikolay Marchuk (6):
Split qualify.c into basic_filters.c and filter_qualify.c
Introduce new filtering architecture
Implement parsing of inject and fault filter actions
Improve fd filtering
Optimize default filtering
Implement new filtering language parsing
Makefile.am | 8 +-
basic_actions.c | 201 +++++++++++++++
basic_filters.c | 587 +++++++++++++++++++++++++++++++++++++++++++
defs.h | 20 +-
filter.c | 251 +++++++++++++++++++
filter.h | 69 ++++++
filter_action.c | 255 +++++++++++++++++++
filter_expression.c | 239 ++++++++++++++++++
filter_qualify.c | 345 ++++++++++++++++++++++++++
qualify.c | 697 ----------------------------------------------------
strace.c | 22 +-
syscall.c | 31 +--
12 files changed, 1981 insertions(+), 744 deletions(-)
create mode 100644 basic_actions.c
create mode 100644 basic_filters.c
create mode 100644 filter.c
create mode 100644 filter.h
create mode 100644 filter_action.c
create mode 100644 filter_expression.c
create mode 100644 filter_qualify.c
delete mode 100644 qualify.c
--
2.1.4
More information about the Strace-devel
mailing list