diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-06-21 04:14:54 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-09-29 00:38:15 -0400 |
commit | 72fe701b70e6ced35d734b676c13efbc8fc769a9 (patch) | |
tree | 87bece8406b18e27409a33355c384c9f759915ae /kernel/rcutiny.c | |
parent | e99033c5c160f1f247c665923a66acec693a967c (diff) |
rcu: Add RCU type to callback-invocation tracing
Add a string to the rcu_batch_start() and rcu_batch_end() trace
messages that indicates the RCU type ("rcu_sched", "rcu_bh", or
"rcu_preempt"). The trace messages for the actual invocations
themselves are not marked, as it should be clear from the
rcu_batch_start() and rcu_batch_end() events before and after.
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/rcutiny.c')
-rw-r--r-- | kernel/rcutiny.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c index 0d28974b78f4..1c37bdd464f1 100644 --- a/kernel/rcutiny.c +++ b/kernel/rcutiny.c | |||
@@ -168,14 +168,14 @@ static void rcu_process_callbacks(struct rcu_ctrlblk *rcp) | |||
168 | 168 | ||
169 | /* If no RCU callbacks ready to invoke, just return. */ | 169 | /* If no RCU callbacks ready to invoke, just return. */ |
170 | if (&rcp->rcucblist == rcp->donetail) { | 170 | if (&rcp->rcucblist == rcp->donetail) { |
171 | RCU_TRACE(trace_rcu_batch_start(0, -1)); | 171 | RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, -1)); |
172 | RCU_TRACE(trace_rcu_batch_end(0)); | 172 | RCU_TRACE(trace_rcu_batch_end(rcp->name, 0)); |
173 | return; | 173 | return; |
174 | } | 174 | } |
175 | 175 | ||
176 | /* Move the ready-to-invoke callbacks to a local list. */ | 176 | /* Move the ready-to-invoke callbacks to a local list. */ |
177 | local_irq_save(flags); | 177 | local_irq_save(flags); |
178 | RCU_TRACE(trace_rcu_batch_start(0, -1)); | 178 | RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, -1)); |
179 | list = rcp->rcucblist; | 179 | list = rcp->rcucblist; |
180 | rcp->rcucblist = *rcp->donetail; | 180 | rcp->rcucblist = *rcp->donetail; |
181 | *rcp->donetail = NULL; | 181 | *rcp->donetail = NULL; |
@@ -197,7 +197,7 @@ static void rcu_process_callbacks(struct rcu_ctrlblk *rcp) | |||
197 | RCU_TRACE(cb_count++); | 197 | RCU_TRACE(cb_count++); |
198 | } | 198 | } |
199 | RCU_TRACE(rcu_trace_sub_qlen(rcp, cb_count)); | 199 | RCU_TRACE(rcu_trace_sub_qlen(rcp, cb_count)); |
200 | RCU_TRACE(trace_rcu_batch_end(cb_count)); | 200 | RCU_TRACE(trace_rcu_batch_end(rcp->name, cb_count)); |
201 | } | 201 | } |
202 | 202 | ||
203 | /* | 203 | /* |