aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-03-04 19:49:22 -0500
committerIngo Molnar <mingo@elte.hu>2009-03-05 06:14:41 -0500
commit0012693ad4f636c720fed3802027f9427962f540 (patch)
tree355277518dbdcc8385f374db1a5d5e15301940e0 /kernel
parentc4ef144a9d0803eb0a2d4110ae87e7f34e667ded (diff)
tracing/function-graph-tracer: use the more lightweight local clock
Impact: decrease hangs risks with the graph tracer on slow systems Since the function graph tracer can spend too much time on timer interrupts, it's better now to use the more lightweight local clock. Anyway, the function graph traces are more reliable on a per cpu trace. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <49af243d.06e9300a.53ad.ffff840c@mx.google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_functions_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index c009553a8e81..e527f2f66c73 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -112,7 +112,7 @@ unsigned long ftrace_return_to_handler(void)
112 unsigned long ret; 112 unsigned long ret;
113 113
114 ftrace_pop_return_trace(&trace, &ret); 114 ftrace_pop_return_trace(&trace, &ret);
115 trace.rettime = cpu_clock(raw_smp_processor_id()); 115 trace.rettime = trace_clock_local();
116 ftrace_graph_return(&trace); 116 ftrace_graph_return(&trace);
117 117
118 if (unlikely(!ret)) { 118 if (unlikely(!ret)) {