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 /Documentation/RCU | |
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 'Documentation/RCU')
-rw-r--r-- | Documentation/RCU/trace.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Documentation/RCU/trace.txt b/Documentation/RCU/trace.txt index 40b530dd0fc7..fd4bffb6e8c9 100644 --- a/Documentation/RCU/trace.txt +++ b/Documentation/RCU/trace.txt | |||
@@ -159,8 +159,8 @@ o "qs" gives an indication of the state of the callback queue | |||
159 | the corresponding character is replaced by ".". | 159 | the corresponding character is replaced by ".". |
160 | 160 | ||
161 | o "kt" is the per-CPU kernel-thread state. The digit preceding | 161 | o "kt" is the per-CPU kernel-thread state. The digit preceding |
162 | the slash is zero if there is no work pending and 1 otherwise. | 162 | the first slash is zero if there is no work pending and 1 |
163 | The character after the slash is as follows: | 163 | otherwise. The character between the slashes is as follows: |
164 | 164 | ||
165 | "S" The kernel thread is stopped, in other words, all | 165 | "S" The kernel thread is stopped, in other words, all |
166 | CPUs corresponding to this rcu_node structure are | 166 | CPUs corresponding to this rcu_node structure are |
@@ -171,10 +171,18 @@ o "kt" is the per-CPU kernel-thread state. The digit preceding | |||
171 | "W" The kernel thread is waiting because there is no work | 171 | "W" The kernel thread is waiting because there is no work |
172 | for it to do. | 172 | for it to do. |
173 | 173 | ||
174 | "O" The kernel thread is waiting because it has been | ||
175 | forced off of its designated CPU or because its | ||
176 | ->cpus_allowed mask permits it to run on other than | ||
177 | its designated CPU. | ||
178 | |||
174 | "Y" The kernel thread is yielding to avoid hogging CPU. | 179 | "Y" The kernel thread is yielding to avoid hogging CPU. |
175 | 180 | ||
176 | "?" Unknown value, indicates a bug. | 181 | "?" Unknown value, indicates a bug. |
177 | 182 | ||
183 | The number after the final slash is the CPU that the kthread | ||
184 | is actually running on. | ||
185 | |||
178 | o "b" is the batch limit for this CPU. If more than this number | 186 | o "b" is the batch limit for this CPU. If more than this number |
179 | of RCU callbacks is ready to invoke, then the remainder will | 187 | of RCU callbacks is ready to invoke, then the remainder will |
180 | be deferred. | 188 | be deferred. |