rcu: Add event tracing to ->gp_tasks update at GP start
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 19 Jun 2017 17:32:23 +0000 (10:32 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 17 Aug 2017 14:26:06 +0000 (07:26 -0700)
commitc5ebe66ce774126b888617cab658f6556d23365e
tree357189ecc38674cfd2e88b0422ebd5ce32dc0433
parent7414fac050d5e0b64554b902f3955eabbebb6cb2
rcu: Add event tracing to ->gp_tasks update at GP start

There is currently event tracing to track when a task is preempted
within a preemptible RCU read-side critical section, and also when that
task subsequently reaches its outermost rcu_read_unlock(), but none
indicating when a new grace period starts when that grace period must
wait on pre-existing readers that have been been preempted at least once
since the beginning of their current RCU read-side critical sections.

This commit therefore adds an event trace at grace-period start in
the case where there are such readers.  Note that only the first
reader in the list is traced.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/rcu/tree_plugin.h