tracing/filter: Add startup tests for events filter
commit1d0e78e380cd2802aa603a50e08220dfc681141c
authorJiri Olsa <jolsa@redhat.com>
Thu, 11 Aug 2011 14:25:54 +0000 (11 16:25 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 19 Aug 2011 18:35:59 +0000 (19 14:35 -0400)
tree909fd3f4d39ca719f29eb6f5690ba171528c4399
parentf30120fce1efaa426f340a354d5ace36dab59f0e
tracing/filter: Add startup tests for events filter

Adding automated tests running as late_initcall. Tests are
compiled in with CONFIG_FTRACE_STARTUP_TEST option.

Adding test event "ftrace_test_filter" used to simulate
filter processing during event occurance.

String filters are compiled and tested against several
test events with different values.

Also testing that evaluation of explicit predicates is ommited
due to the lazy filter evaluation.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1313072754-4620-11-git-send-email-jolsa@redhat.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/Makefile
kernel/trace/trace.h
kernel/trace/trace_events_filter.c
kernel/trace/trace_events_filter_test.h [new file with mode: 0644]