diff options
author | Michael Wang <wangyun@linux.vnet.ibm.com> | 2012-09-19 20:51:08 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-11-08 14:50:19 -0500 |
commit | 5f4ee1fa16fa1bee673b75722ca43350a74fba36 (patch) | |
tree | 3457aab7bd188e79fbbb0b54b11125c9e62b3c6b /kernel/rcutree_trace.c | |
parent | c011c41f11c4bf9b0c8d489a458770c24aeb2ebd (diff) |
rcu: Remove the interface "rcudata.csv"
This patch removes the interface "rcudata.csv" since it is apparently
not used.
Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_trace.c')
-rw-r--r-- | kernel/rcutree_trace.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c index 0e2ab6427b64..bcc4865fea8b 100644 --- a/kernel/rcutree_trace.c +++ b/kernel/rcutree_trace.c | |||
@@ -174,77 +174,6 @@ static const struct file_operations rcudata_fops = { | |||
174 | .release = seq_release, | 174 | .release = seq_release, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static void print_one_rcu_data_csv(struct seq_file *m, struct rcu_data *rdp) | ||
178 | { | ||
179 | if (!rdp->beenonline) | ||
180 | return; | ||
181 | seq_printf(m, "%d,%s,%lu,%lu,%d,%d", | ||
182 | rdp->cpu, | ||
183 | cpu_is_offline(rdp->cpu) ? "\"N\"" : "\"Y\"", | ||
184 | rdp->completed, rdp->gpnum, | ||
185 | rdp->passed_quiesce, rdp->qs_pending); | ||
186 | seq_printf(m, ",%d,%llx,%d,%lu", | ||
187 | atomic_read(&rdp->dynticks->dynticks), | ||
188 | rdp->dynticks->dynticks_nesting, | ||
189 | rdp->dynticks->dynticks_nmi_nesting, | ||
190 | rdp->dynticks_fqs); | ||
191 | seq_printf(m, ",%lu", rdp->offline_fqs); | ||
192 | seq_printf(m, ",%ld,%ld,\"%c%c%c%c\"", rdp->qlen_lazy, rdp->qlen, | ||
193 | ".N"[rdp->nxttail[RCU_NEXT_READY_TAIL] != | ||
194 | rdp->nxttail[RCU_NEXT_TAIL]], | ||
195 | ".R"[rdp->nxttail[RCU_WAIT_TAIL] != | ||
196 | rdp->nxttail[RCU_NEXT_READY_TAIL]], | ||
197 | ".W"[rdp->nxttail[RCU_DONE_TAIL] != | ||
198 | rdp->nxttail[RCU_WAIT_TAIL]], | ||
199 | ".D"[&rdp->nxtlist != rdp->nxttail[RCU_DONE_TAIL]]); | ||
200 | #ifdef CONFIG_RCU_BOOST | ||
201 | seq_printf(m, ",%d,\"%c\"", | ||
202 | per_cpu(rcu_cpu_has_work, rdp->cpu), | ||
203 | convert_kthread_status(per_cpu(rcu_cpu_kthread_status, | ||
204 | rdp->cpu))); | ||
205 | #endif /* #ifdef CONFIG_RCU_BOOST */ | ||
206 | seq_printf(m, ",%ld", rdp->blimit); | ||
207 | seq_printf(m, ",%lu,%lu,%lu\n", | ||
208 | rdp->n_cbs_invoked, rdp->n_cbs_orphaned, rdp->n_cbs_adopted); | ||
209 | } | ||
210 | |||
211 | static int show_rcudata_csv(struct seq_file *m, void *v) | ||
212 | { | ||
213 | struct rcu_data *rdp = (struct rcu_data *)v; | ||
214 | if (cpumask_first(cpu_possible_mask) == rdp->cpu) { | ||
215 | seq_puts(m, "\"CPU\",\"Online?\",\"c\",\"g\",\"pq\",\"pq\","); | ||
216 | seq_puts(m, "\"dt\",\"dt nesting\",\"dt NMI nesting\",\"df\","); | ||
217 | seq_puts(m, "\"of\",\"qll\",\"ql\",\"qs\""); | ||
218 | #ifdef CONFIG_RCU_BOOST | ||
219 | seq_puts(m, "\"kt\",\"ktl\""); | ||
220 | #endif /* #ifdef CONFIG_RCU_BOOST */ | ||
221 | seq_puts(m, ",\"b\",\"ci\",\"co\",\"ca\"\n"); | ||
222 | } | ||
223 | |||
224 | print_one_rcu_data_csv(m, rdp); | ||
225 | return 0; | ||
226 | } | ||
227 | |||
228 | static const struct seq_operations rcudate_csv_op = { | ||
229 | .start = r_start, | ||
230 | .next = r_next, | ||
231 | .stop = r_stop, | ||
232 | .show = show_rcudata_csv, | ||
233 | }; | ||
234 | |||
235 | static int rcudata_csv_open(struct inode *inode, struct file *file) | ||
236 | { | ||
237 | return r_open(inode, file, &rcudate_csv_op); | ||
238 | } | ||
239 | |||
240 | static const struct file_operations rcudata_csv_fops = { | ||
241 | .owner = THIS_MODULE, | ||
242 | .open = rcudata_csv_open, | ||
243 | .read = seq_read, | ||
244 | .llseek = no_llseek, | ||
245 | .release = seq_release, | ||
246 | }; | ||
247 | |||
248 | #ifdef CONFIG_RCU_BOOST | 177 | #ifdef CONFIG_RCU_BOOST |
249 | 178 | ||
250 | static void print_one_rcu_node_boost(struct seq_file *m, struct rcu_node *rnp) | 179 | static void print_one_rcu_node_boost(struct seq_file *m, struct rcu_node *rnp) |
@@ -496,11 +425,6 @@ static int __init rcutree_trace_init(void) | |||
496 | if (!retval) | 425 | if (!retval) |
497 | goto free_out; | 426 | goto free_out; |
498 | 427 | ||
499 | retval = debugfs_create_file("rcudata.csv", 0444, | ||
500 | rspdir, rsp, &rcudata_csv_fops); | ||
501 | if (!retval) | ||
502 | goto free_out; | ||
503 | |||
504 | retval = debugfs_create_file("rcu_pending", 0444, | 428 | retval = debugfs_create_file("rcu_pending", 0444, |
505 | rspdir, rsp, &rcu_pending_fops); | 429 | rspdir, rsp, &rcu_pending_fops); |
506 | if (!retval) | 430 | if (!retval) |