Commit c3d0258d authored by Paul E. McKenney's avatar Paul E. McKenney

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: 1ac78b49 ("scftorture: Add an alternative IPI vector")
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent da9366c6
...@@ -341,6 +341,7 @@ static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_ra ...@@ -341,6 +341,7 @@ static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_ra
cpu = torture_random(trsp) % nr_cpu_ids; cpu = torture_random(trsp) % nr_cpu_ids;
scfp->n_resched++; scfp->n_resched++;
resched_cpu(cpu); resched_cpu(cpu);
this_cpu_inc(scf_invoked_count);
} }
break; break;
case SCF_PRIM_SINGLE: case SCF_PRIM_SINGLE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment