]> git.baikalelectronics.ru Git - kernel.git/commit
tools/rcu: Add drgn script to dump number of RCU callbacks
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 22 Apr 2021 18:55:43 +0000 (11:55 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 22:39:19 +0000 (15:39 -0700)
commitea7dbbeff9667fe92d65c7f7a53619055b76f03b
tree2b7d401482dedb984c3d1b46e3edbdeeff8686f8
parent44ade0ac9b2d13825fd83f83a29b963d6b7c79b4
tools/rcu: Add drgn script to dump number of RCU callbacks

This commit adds an rcu-cbs.py drgn script that computes the number of
RCU callbacks waiting to be invoked.  This information can be helpful
when managing systems that are short of memory and that have software
components that make heavy use of RCU, for example, by opening and
closing files in tight loops.  (But please note that there are almost
always better ways to get your job done than by opening and closing
files in tight loops.)

Reported-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/rcu/rcu-cbs.py [new file with mode: 0644]