rcu/trace: Add tracing for how segcb list changes
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Sat, 14 Nov 2020 19:31:32 +0000 (14:31 -0500)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 00:24:19 +0000 (16:24 -0800)
commit3afe7fa535491ecd0382c3968dc2349602bff8a2
treefc03859921463287aa6c086ddc78635d05ab7da6
parent68804cf1c905ce227e4e1d0bc252c216811c59fd
rcu/trace: Add tracing for how segcb list changes

This commit adds tracing to track how the segcb list changes before/after
acceleration, during queuing and during dequeuing.

This tracing helped discover an optimization that avoided needless GP
requests when no callbacks were accelerated. The tracing overhead is
minimal as each segment's length is now stored in the respective segment.

Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/trace/events/rcu.h
kernel/rcu/tree.c