OSDN Git Service

scftorture: Count reschedule IPIs
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 14 Jul 2021 13:53:51 +0000 (06:53 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 16 Sep 2021 17:27:48 +0000 (10:27 -0700)
commitc3d0258d5af2a50529e8928fe458344e38653d25
treea50b1bf33d5a85e1a5322df151dbec9aa87f915a
parentda9366c627ef459a1ceb6e5535648683e2adbdb2
scftorture: Count reschedule IPIs

Currently, only those IPIs that invoke scftorture's scf_handler()
IPI handler function are counted.  This means that runs exercising
only scftorture.weight_resched will look like they have made no forward
progress, resulting in "GP HANG" complaints from the rcutorture scripting.
This commit therefore increments the scf_invoked_count per-CPU counter
immediately after calling resched_cpu().

Fixes: 1ac78b49d61d4 ("scftorture: Add an alternative IPI vector")
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c