]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75da3c36d77de49ab5493e8b501a3c7e4cfe4604
tree5f797433b9604e645e068a85c6f708db8b9dfbcd
parentaaf15e1ec7a41866b8250b52248a3f08d08973d5
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