aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:18 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:18 -0400
commit2d92f22784b7b8879ebe3254e44c92cb8792b0dd (patch)
tree22f5fb824a9b49ada87c504fca21db27d5d117b3 /kernel/sched_debug.c
parentff56b2f01537aef7237d5ac8bf6bfbb409c1a127 (diff)
sched: debug: increase width of debug line
increase width of debug line - in preparation of more debugging info. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r--kernel/sched_debug.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 0aab455a7b41..755815937417 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -198,7 +198,7 @@ static int sched_debug_show(struct seq_file *m, void *v)
198 u64 now = ktime_to_ns(ktime_get()); 198 u64 now = ktime_to_ns(ktime_get());
199 int cpu; 199 int cpu;
200 200
201 SEQ_printf(m, "Sched Debug Version: v0.05-v20, %s %.*s\n", 201 SEQ_printf(m, "Sched Debug Version: v0.06-v22, %s %.*s\n",
202 init_utsname()->release, 202 init_utsname()->release,
203 (int)strcspn(init_utsname()->version, " "), 203 (int)strcspn(init_utsname()->version, " "),
204 init_utsname()->version); 204 init_utsname()->version);
@@ -271,11 +271,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
271 rcu_read_unlock(); 271 rcu_read_unlock();
272 272
273 SEQ_printf(m, "%s (%d, #threads: %d)\n", p->comm, p->pid, num_threads); 273 SEQ_printf(m, "%s (%d, #threads: %d)\n", p->comm, p->pid, num_threads);
274 SEQ_printf(m, "----------------------------------------------\n"); 274 SEQ_printf(m,
275 "---------------------------------------------------------\n");
275#define P(F) \ 276#define P(F) \
276 SEQ_printf(m, "%-25s:%20Ld\n", #F, (long long)p->F) 277 SEQ_printf(m, "%-35s:%21Ld\n", #F, (long long)p->F)
277#define PN(F) \ 278#define PN(F) \
278 SEQ_printf(m, "%-25s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)p->F)) 279 SEQ_printf(m, "%-35s:%14Ld.%06ld\n", #F, SPLIT_NS((long long)p->F))
279 280
280 PN(se.exec_start); 281 PN(se.exec_start);
281 PN(se.vruntime); 282 PN(se.vruntime);
@@ -292,7 +293,7 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
292 PN(se.wait_max); 293 PN(se.wait_max);
293 P(sched_info.bkl_count); 294 P(sched_info.bkl_count);
294#endif 295#endif
295 SEQ_printf(m, "%-25s:%20Ld\n", 296 SEQ_printf(m, "%-35s:%21Ld\n",
296 "nr_switches", (long long)(p->nvcsw + p->nivcsw)); 297 "nr_switches", (long long)(p->nvcsw + p->nivcsw));
297 P(se.load.weight); 298 P(se.load.weight);
298 P(policy); 299 P(policy);
@@ -305,7 +306,7 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
305 306
306 t0 = sched_clock(); 307 t0 = sched_clock();
307 t1 = sched_clock(); 308 t1 = sched_clock();
308 SEQ_printf(m, "%-25s:%20Ld\n", 309 SEQ_printf(m, "%-35s:%21Ld\n",
309 "clock-delta", (long long)(t1-t0)); 310 "clock-delta", (long long)(t1-t0));
310 } 311 }
311} 312}