rcutorture: Print forward-progress test age upon failure
authorPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 4 Oct 2018 17:54:22 +0000 (10:54 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 1 Dec 2018 20:45:40 +0000 (12:45 -0800)
This commit prints the age of the forward-progress test in jiffies,
in order to allow better interpretation of the callback-invocation
histograms.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/rcutorture.c

index 329f4fb13125904c17fd3f11affbc1b1eb1e8a05..080b5ac6340cd5dbedc9350f13c511ce121a333e 100644 (file)
@@ -1639,7 +1639,8 @@ static void rcu_torture_fwd_cb_hist(void)
        for (i = ARRAY_SIZE(n_launders_hist) - 1; i > 0; i--)
                if (n_launders_hist[i] > 0)
                        break;
-       pr_alert("%s: Callback-invocation histogram:", __func__);
+       pr_alert("%s: Callback-invocation histogram (duration %lu jiffies):",
+                __func__, jiffies - rcu_fwd_startat);
        for (j = 0; j <= i; j++)
                pr_cont(" %ds: %ld", j + 1, n_launders_hist[j]);
        pr_cont("\n");