aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_trace.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2009-10-14 19:36:38 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-15 05:20:22 -0400
commit3397e040dfacbb303498ced1baa96be983dcea06 (patch)
treea88622259699c066756c0ed62caa7218ca5b79ef /kernel/rcutree_trace.c
parent019129d595caaa5bd0b41d128308da1be6a91869 (diff)
rcu: Add rnp->blocked_tasks to tracing
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: laijs@cn.fujitsu.com Cc: dipankar@in.ibm.com Cc: mathieu.desnoyers@polymtl.ca Cc: dvhltc@us.ibm.com Cc: niv@us.ibm.com Cc: peterz@infradead.org Cc: rostedt@goodmis.org Cc: Valdis.Kletnieks@vt.edu Cc: dhowells@redhat.com Cc: npiggin@suse.de Cc: jens.axboe@oracle.com Cc: Josh Triplett <josh@joshtriplett.org> LKML-Reference: <20091014233638.GE6763@linux.vnet.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> kernel/rcutree_trace.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
Diffstat (limited to 'kernel/rcutree_trace.c')
-rw-r--r--kernel/rcutree_trace.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c
index 4b31c779e62e..1984cdc51e9a 100644
--- a/kernel/rcutree_trace.c
+++ b/kernel/rcutree_trace.c
@@ -155,12 +155,14 @@ static const struct file_operations rcudata_csv_fops = {
155 155
156static void print_one_rcu_state(struct seq_file *m, struct rcu_state *rsp) 156static void print_one_rcu_state(struct seq_file *m, struct rcu_state *rsp)
157{ 157{
158 long gpnum;
158 int level = 0; 159 int level = 0;
159 struct rcu_node *rnp; 160 struct rcu_node *rnp;
160 161
162 gpnum = rsp->gpnum;
161 seq_printf(m, "c=%ld g=%ld s=%d jfq=%ld j=%x " 163 seq_printf(m, "c=%ld g=%ld s=%d jfq=%ld j=%x "
162 "nfqs=%lu/nfqsng=%lu(%lu) fqlh=%lu oqlen=%ld\n", 164 "nfqs=%lu/nfqsng=%lu(%lu) fqlh=%lu oqlen=%ld\n",
163 rsp->completed, rsp->gpnum, rsp->signaled, 165 rsp->completed, gpnum, rsp->signaled,
164 (long)(rsp->jiffies_force_qs - jiffies), 166 (long)(rsp->jiffies_force_qs - jiffies),
165 (int)(jiffies & 0xffff), 167 (int)(jiffies & 0xffff),
166 rsp->n_force_qs, rsp->n_force_qs_ngp, 168 rsp->n_force_qs, rsp->n_force_qs_ngp,
@@ -171,8 +173,10 @@ static void print_one_rcu_state(struct seq_file *m, struct rcu_state *rsp)
171 seq_puts(m, "\n"); 173 seq_puts(m, "\n");
172 level = rnp->level; 174 level = rnp->level;
173 } 175 }
174 seq_printf(m, "%lx/%lx %d:%d ^%d ", 176 seq_printf(m, "%lx/%lx %c>%c %d:%d ^%d ",
175 rnp->qsmask, rnp->qsmaskinit, 177 rnp->qsmask, rnp->qsmaskinit,
178 "T."[list_empty(&rnp->blocked_tasks[gpnum & 1])],
179 "T."[list_empty(&rnp->blocked_tasks[!(gpnum & 1)])],
176 rnp->grplo, rnp->grphi, rnp->grpnum); 180 rnp->grplo, rnp->grphi, rnp->grpnum);
177 } 181 }
178 seq_puts(m, "\n"); 182 seq_puts(m, "\n");