Skip to content

tracing: Add event filter logic for !(...)

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing: Add NOT to filtering logickernel/trace/trace_events_filter.c+18 -20 replies
2/3tracing: Allow NOT to filter AND and OR clauseskernel/trace/trace_events_filter.c+5 -40 replies
3/3ftracetests: Add test to test event filter logictools/testing/selftests/ftrace/test.d/ftrace/filter.tc+200 -013 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] tracing: Add event filter logic for !(...)

There's no changes to the first patch that you can see from here:

http://lkml.kernel.org/r/[email protected]

But I added two more patches:

1) adds the logic to do ! with the AND and OR cases. Like:

  !(prev_pid == 0 && next_pid == 1)

2) I added ftracetests selftest to test a bunch of filter cases. I can probably add more, but this is a start.

Steven Rostedt (Red Hat) (3):
tracing: Add NOT to filtering logic
tracing: Allow NOT to filter AND and OR clauses
ftracetests: Add test to test event filter logic

----

 kernel/trace/trace_events_filter.c                 |  29 ++-
 .../selftests/ftrace/test.d/ftrace/filter.tc       | 200 +++++++++++++++++++++
 2 files changed, 223 insertions(+), 6 deletions(-)