summaryrefslogtreecommitdiffstats
path: root/kernel/scftorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-07-14 15:53:51 +0200
committerPaul E. McKenney <paulmck@kernel.org>2021-09-16 19:27:48 +0200
commitc3d0258d5af2a50529e8928fe458344e38653d25 (patch)
treea50b1bf33d5a85e1a5322df151dbec9aa87f915a /kernel/scftorture.c
parentscftorture: Account for weight_resched when checking for all zeroes (diff)
downloadlinux-c3d0258d5af2a50529e8928fe458344e38653d25.tar.xz
linux-c3d0258d5af2a50529e8928fe458344e38653d25.zip
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>
Diffstat (limited to 'kernel/scftorture.c')
-rw-r--r--kernel/scftorture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/scftorture.c b/kernel/scftorture.c
index 74348abc792b..00bba2bdd4d1 100644
--- a/kernel/scftorture.c
+++ b/kernel/scftorture.c
@@ -341,6 +341,7 @@ static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_ra
cpu = torture_random(trsp) % nr_cpu_ids;
scfp->n_resched++;
resched_cpu(cpu);
+ this_cpu_inc(scf_invoked_count);
}
break;
case SCF_PRIM_SINGLE: