]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add sched_wakeup_new and sched_waking tracepoints for pid filter
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 1 Dec 2015 21:08:05 +0000 (16:08 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 1 Dec 2015 21:08:05 +0000 (16:08 -0500)
commit984118f83d03d2462e258bd3588084bee8efe570
tree59249ac6a7d2fbf517f2f8757ee5af6307cff3e7
parentb4610afb24ee654c5f999d14f1d9e0fb651113f3
tracing: Add sched_wakeup_new and sched_waking tracepoints for pid filter

The set_event_pid filter relies on attaching to the sched_switch and
sched_wakeup tracepoints to see if it should filter the tracing on schedule
tracepoints. By adding the callbacks to sched_wakeup, pids in the
set_event_pid file will trace the wakeups of those tasks with those pids.

But sched_wakeup_new and sched_waking were missed. These two should also be
traced. Luckily, these tracepoints share the same class as sched_wakeup
which means they can use the same pre and post callbacks as sched_wakeup
does.

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