* [PATCH] ftrace: move pc counter in irqstrace
@ 2008-10-02 23:23 Steven Rostedt
2008-10-03 7:57 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2008-10-02 23:23 UTC (permalink / raw)
To: LKML; +Cc: Ingo Molnar
The assigning of the pc counter is in the wrong spot in the
check_critical_timing function. The pc variable is used in the
out jump.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
kernel/trace/trace_irqsoff.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-tip.git/kernel/trace/trace_irqsoff.c
===================================================================
--- linux-tip.git.orig/kernel/trace/trace_irqsoff.c 2008-10-02 09:07:16.000000000 -0400
+++ linux-tip.git/kernel/trace/trace_irqsoff.c 2008-10-02 14:16:54.000000000 -0400
@@ -142,11 +142,11 @@ check_critical_timing(struct trace_array
local_save_flags(flags);
+ pc = preempt_count();
+
if (!report_latency(delta))
goto out;
- pc = preempt_count();
-
spin_lock_irqsave(&max_trace_lock, flags);
/* check if we are still the max latency */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-03 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02 23:23 [PATCH] ftrace: move pc counter in irqstrace Steven Rostedt
2008-10-03 7:57 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®