tracing: Check all tasks on each CPU when filtering pids
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 21 Oct 2015 19:27:36 +0000 (15:27 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 26 Oct 2015 01:33:56 +0000 (21:33 -0400)
commit8ca532ad2b050da0d0db3544d9ab8b40675e4ca1
treeccba6d4d2730df8ebc3d2ca5747d0006cd2ff762
parent3fdaf80f4a836911c0eda1cee92f8aa625f90197
tracing: Check all tasks on each CPU when filtering pids

My tests found that if a task is running but not filtered when set_event_pid
is modified, then it can still be traced.

Call on_each_cpu() to check if the current running task should be filtered
and update the per cpu flags of tr->data appropriately.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c