tracing: Implement event pid filtering
Add the necessary hooks to use the pids loaded in set_event_pid to filter
all the events enabled in the tracing instance that match the pids listed.
Two probes are added to both sched_switch and sched_wakeup tracepoints to be
called before other probes are called and after the other probes are called.
The first is used to set the necessary flags to let the probes know to test
if they should be traced or not.
The sched_switch pre probe will set the "ignore_pid" flag if neither the
previous or next task has a matching pid.
The sched_switch probe will set the "ignore_pid" flag if the next task
does not match the matching pid.
The pre probe allows for probes tracing sched_switch to be traced if
necessary.
The sched_wakeup pre probe will set the "ignore_pid" flag if neither the
current task nor the wakee task has a matching pid.
The sched_wakeup post probe will set the "ignore_pid" flag if the current
task does not have a matching pid.
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
parent
49090107
-
mentioned in commit 6cb20650
-
mentioned in commit a55f224f
-
mentioned in commit bbaf4fe5
-
mentioned in commit 2692931d
-
mentioned in commit 092a58f0
-
mentioned in commit 406f2d5f
-
mentioned in commit c9c8c054
-
mentioned in commit e09e868c
-
mentioned in commit 3c9a213e
-
mentioned in commit dae065e3
-
mentioned in commit e5b0fbaf
-
mentioned in commit cad2eb41
-
mentioned in commit 53e4683c
-
mentioned in commit 41a3f516
Please register or sign in to comment