aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_irqsoff.c26
-rw-r--r--kernel/trace/trace_sched_wakeup.c13
2 files changed, 14 insertions, 25 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 7a4dc014b8ab..d0c1748b1e2c 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -165,18 +165,20 @@ check_critical_timing(struct trace_array *tr,
165 165
166 update_max_tr_single(tr, current, cpu); 166 update_max_tr_single(tr, current, cpu);
167 167
168 if (tracing_thresh) { 168 if (!runqueue_is_locked()) {
169 printk(KERN_INFO "(%16s-%-5d|#%d):" 169 if (tracing_thresh) {
170 " %lu us critical section violates %lu us threshold.\n", 170 printk(KERN_INFO "(%16s-%-5d|#%d): %lu us critical"
171 current->comm, current->pid, 171 " section violates %lu us threshold.\n",
172 raw_smp_processor_id(), 172 current->comm, current->pid,
173 latency, nsecs_to_usecs(tracing_thresh)); 173 raw_smp_processor_id(),
174 } else { 174 latency, nsecs_to_usecs(tracing_thresh));
175 printk(KERN_INFO "(%16s-%-5d|#%d):" 175 } else {
176 " new %lu us maximum-latency critical section.\n", 176 printk(KERN_INFO "(%16s-%-5d|#%d): new %lu us"
177 current->comm, current->pid, 177 " maximum-latency critical section.\n",
178 raw_smp_processor_id(), 178 current->comm, current->pid,
179 latency); 179 raw_smp_processor_id(),
180 latency);
181 }
180 } 182 }
181 183
182 max_sequence++; 184 max_sequence++;
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index 2a012423f9d0..5948011006bc 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -106,19 +106,6 @@ wakeup_sched_switch(struct task_struct *prev, struct task_struct *next)
106 106
107 update_max_tr(tr, wakeup_task, wakeup_cpu); 107 update_max_tr(tr, wakeup_task, wakeup_cpu);
108 108
109 if (tracing_thresh) {
110 printk(KERN_INFO "(%16s-%-5d|#%d):"
111 " %lu us wakeup latency violates %lu us threshold.\n",
112 wakeup_task->comm, wakeup_task->pid,
113 raw_smp_processor_id(),
114 latency, nsecs_to_usecs(tracing_thresh));
115 } else {
116 printk(KERN_INFO "(%16s-%-5d|#%d):"
117 " new %lu us maximum wakeup latency.\n",
118 wakeup_task->comm, wakeup_task->pid,
119 cpu, latency);
120 }
121
122out_unlock: 109out_unlock:
123 __wakeup_reset(tr); 110 __wakeup_reset(tr);
124 spin_unlock_irqrestore(&wakeup_lock, flags); 111 spin_unlock_irqrestore(&wakeup_lock, flags);