diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-04-06 19:01:16 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-06 02:16:56 -0400 |
commit | 15ba0ba860871cf74b48b1bb47c26c91a66126f3 (patch) | |
tree | 2043eeca7d6df62fc0ae918b61abada073f81415 /kernel/rcutree.h | |
parent | a9f4793d8900dc5dc09b3951bdcd4731290e06fe (diff) |
rcu: add grace-period age and more kthread state to tracing
This commit adds the age in jiffies of the current grace period along
with the duration in jiffies of the longest grace period since boot
to the rcu/rcugp debugfs file. It also adds an additional "O" state
to kthread tracing to differentiate between the kthread waiting due to
having nothing to do on the one hand and waiting due to being on the
wrong CPU on the other hand.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r-- | kernel/rcutree.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index 67341dbebd95..37502a27a072 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -93,8 +93,9 @@ struct rcu_dynticks { | |||
93 | #define RCU_KTHREAD_STOPPED 0 | 93 | #define RCU_KTHREAD_STOPPED 0 |
94 | #define RCU_KTHREAD_RUNNING 1 | 94 | #define RCU_KTHREAD_RUNNING 1 |
95 | #define RCU_KTHREAD_WAITING 2 | 95 | #define RCU_KTHREAD_WAITING 2 |
96 | #define RCU_KTHREAD_YIELDING 3 | 96 | #define RCU_KTHREAD_OFFCPU 3 |
97 | #define RCU_KTHREAD_MAX 3 | 97 | #define RCU_KTHREAD_YIELDING 4 |
98 | #define RCU_KTHREAD_MAX 4 | ||
98 | 99 | ||
99 | /* | 100 | /* |
100 | * Definition for node within the RCU grace-period-detection hierarchy. | 101 | * Definition for node within the RCU grace-period-detection hierarchy. |
@@ -383,6 +384,8 @@ struct rcu_state { | |||
383 | /* but in jiffies. */ | 384 | /* but in jiffies. */ |
384 | unsigned long jiffies_stall; /* Time at which to check */ | 385 | unsigned long jiffies_stall; /* Time at which to check */ |
385 | /* for CPU stalls. */ | 386 | /* for CPU stalls. */ |
387 | unsigned long gp_max; /* Maximum GP duration in */ | ||
388 | /* jiffies. */ | ||
386 | char *name; /* Name of structure. */ | 389 | char *name; /* Name of structure. */ |
387 | }; | 390 | }; |
388 | 391 | ||