Commit 1d702e2e authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcuscale: Print grace-period kthread CPU time, if recorded



This commit prints out the CPU time consumed by the grace-period kthread,
if the specified RCU flavor supports this notion.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 2d7b2b34
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -40,6 +40,10 @@ awk '
	sum += $5 / 1000.;
}

/rcu_scale: Grace-period kthread CPU time/ {
	cputime = $6;
}

END {
	newNR = asort(gptimes);
	if (newNR <= 0) {
@@ -78,6 +82,8 @@ END {
	print "90th percentile grace-period duration: " gptimes[pct90];
	print "99th percentile grace-period duration: " gptimes[pct99];
	print "Maximum grace-period duration: " gptimes[newNR];
	print "Grace periods: " ngps + 0 " Batches: " nbatches + 0 " Ratio: " ngps / nbatches;
	if (cputime != "")
		cpustr = " CPU: " cputime;
	print "Grace periods: " ngps + 0 " Batches: " nbatches + 0 " Ratio: " ngps / nbatches cpustr;
	print "Computed from rcuscale printk output.";
}'