aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_wakeup.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:45 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:40:46 -0400
commitc7aafc549766b87819285d3480648fc652a47bc4 (patch)
tree4c36170a644633f930feca57b27f8c5d23644e70 /kernel/trace/trace_sched_wakeup.c
parent60a11774b38fef1ab90b18c5353bd1c7c4d311c8 (diff)
ftrace: cleanups
factor out code and clean it up. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
-rw-r--r--kernel/trace/trace_sched_wakeup.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index 3d10ff01f80..688df965f3f 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -107,24 +107,18 @@ wakeup_sched_switch(struct task_struct *prev, struct task_struct *next)
107 update_max_tr(tr, wakeup_task, wakeup_cpu); 107 update_max_tr(tr, wakeup_task, wakeup_cpu);
108 108
109 if (tracing_thresh) { 109 if (tracing_thresh) {
110 printk(KERN_INFO "(%16s-%-5d|#%d): %lu us wakeup latency " 110 printk(KERN_INFO "(%16s-%-5d|#%d):"
111 "violates %lu us threshold.\n" 111 " %lu us wakeup latency violates %lu us threshold.\n",
112 " => started at timestamp %lu: ",
113 wakeup_task->comm, wakeup_task->pid, 112 wakeup_task->comm, wakeup_task->pid,
114 raw_smp_processor_id(), 113 raw_smp_processor_id(),
115 latency, nsecs_to_usecs(tracing_thresh), t0); 114 latency, nsecs_to_usecs(tracing_thresh));
116 } else { 115 } else {
117 printk(KERN_INFO "(%16s-%-5d|#%d): new %lu us maximum " 116 printk(KERN_INFO "(%16s-%-5d|#%d):"
118 "wakeup latency.\n => started at timestamp %lu: ", 117 " new %lu us maximum wakeup latency.\n",
119 wakeup_task->comm, wakeup_task->pid, 118 wakeup_task->comm, wakeup_task->pid,
120 cpu, latency, t0); 119 cpu, latency);
121 } 120 }
122 121
123 printk(KERN_CONT " ended at timestamp %lu: ", t1);
124 dump_stack();
125 t1 = nsecs_to_usecs(now(cpu));
126 printk(KERN_CONT " dump-end timestamp %lu\n\n", t1);
127
128out_unlock: 122out_unlock:
129 __wakeup_reset(tr); 123 __wakeup_reset(tr);
130 spin_unlock_irqrestore(&wakeup_lock, flags); 124 spin_unlock_irqrestore(&wakeup_lock, flags);