tracing/filter: Have no filter return a match
authorSteven Rostedt <srostedt@redhat.com>
Fri, 28 Jan 2011 03:33:26 +0000 (22:33 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Feb 2011 01:56:17 +0000 (20:56 -0500)
commit6d54057d76e25c91165cda0e6e007f1811faa2be
tree5f797433b9604e645e068a85c6f708db8b9dfbcd
parent075de90c46562de1435db16c2129ec4ff92e5bd2
tracing/filter: Have no filter return a match

The n_preds field of a file can change at anytime, and even can become
zero, just as the filter is about to be processed by an event.
In the case that is zero on entering the filter, return 1, telling
the caller the event matchs and should be trace.

Also use a variable and assign it with ACCESS_ONCE() such that the
count stays consistent within the function.

Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c