summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-01-27 22:33:26 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-02-07 20:56:17 -0500
commit6d54057d76e25c91165cda0e6e007f1811faa2be (patch)
tree5f797433b9604e645e068a85c6f708db8b9dfbcd /kernel/trace/trace.h
parent075de90c46562de1435db16c2129ec4ff92e5bd2 (diff)
downloadlwn-6d54057d76e25c91165cda0e6e007f1811faa2be.tar.gz
lwn-6d54057d76e25c91165cda0e6e007f1811faa2be.zip
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>
Diffstat (limited to 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions