aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2011-06-21 04:14:54 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-09-29 00:38:15 -0400
commit72fe701b70e6ced35d734b676c13efbc8fc769a9 (patch)
tree87bece8406b18e27409a33355c384c9f759915ae /kernel/rcutree.c
parente99033c5c160f1f247c665923a66acec693a967c (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/rcutree.c')
-rw-r--r--kernel/rcutree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index b953e2c72e25..eb6e731088a0 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1199,8 +1199,8 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
1199 1199
1200 /* If no callbacks are ready, just return.*/ 1200 /* If no callbacks are ready, just return.*/
1201 if (!cpu_has_callbacks_ready_to_invoke(rdp)) { 1201 if (!cpu_has_callbacks_ready_to_invoke(rdp)) {
1202 trace_rcu_batch_start(0, 0); 1202 trace_rcu_batch_start(rsp->name, 0, 0);
1203 trace_rcu_batch_end(0); 1203 trace_rcu_batch_end(rsp->name, 0);
1204 return; 1204 return;
1205 } 1205 }
1206 1206
@@ -1210,7 +1210,7 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
1210 */ 1210 */
1211 local_irq_save(flags); 1211 local_irq_save(flags);
1212 bl = rdp->blimit; 1212 bl = rdp->blimit;
1213 trace_rcu_batch_start(rdp->qlen, bl); 1213 trace_rcu_batch_start(rsp->name, rdp->qlen, bl);
1214 list = rdp->nxtlist; 1214 list = rdp->nxtlist;
1215 rdp->nxtlist = *rdp->nxttail[RCU_DONE_TAIL]; 1215 rdp->nxtlist = *rdp->nxttail[RCU_DONE_TAIL];
1216 *rdp->nxttail[RCU_DONE_TAIL] = NULL; 1216 *rdp->nxttail[RCU_DONE_TAIL] = NULL;
@@ -1233,7 +1233,7 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
1233 } 1233 }
1234 1234
1235 local_irq_save(flags); 1235 local_irq_save(flags);
1236 trace_rcu_batch_end(count); 1236 trace_rcu_batch_end(rsp->name, count);
1237 1237
1238 /* Update count, and requeue any remaining callbacks. */ 1238 /* Update count, and requeue any remaining callbacks. */
1239 rdp->qlen -= count; 1239 rdp->qlen -= count;