diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-10-04 02:25:33 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-12-01 21:45:40 +0100 |
commit | c51d7b5e6c94aa6b554c27bd2b0eb64ebef02334 (patch) | |
tree | 418086e10572a6dd2411f1a030129768542a167e /kernel/rcu/tree.h | |
parent | rcutorture: Print histogram of CB invocation at OOM time (diff) | |
download | linux-c51d7b5e6c94aa6b554c27bd2b0eb64ebef02334.tar.xz linux-c51d7b5e6c94aa6b554c27bd2b0eb64ebef02334.zip |
rcutorture: Print time since GP end upon forward-progress failure
If rcutorture's forward-progress tests fail while a grace period is not
in progress, it is useful to print the time since the last grace period
ended as a way to detect failure to launch a new grace period. This
commit therefore makes this change.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r-- | kernel/rcu/tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index a8f82b7dc5e2..d90b02b53c0e 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -328,6 +328,8 @@ struct rcu_state { /* force_quiescent_state(). */ unsigned long gp_start; /* Time at which GP started, */ /* but in jiffies. */ + unsigned long gp_end; /* Time last GP ended, again */ + /* in jiffies. */ unsigned long gp_activity; /* Time of last GP kthread */ /* activity in jiffies. */ unsigned long gp_req_activity; /* Time of last GP request */ |