tracing: Drop the tr check from the graph tracing path
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 14 Jan 2010 07:23:15 +0000 (08:23 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 17 Jan 2010 07:06:25 +0000 (08:06 +0100)
commit24a53652e361321b09df5040711e69387344ce09
tree9db320478f5233ee4b427292cc57ad4b3a66fefb
parentd931369b74b3d6f2044f595af6f3dd074f65d9cf
tracing: Drop the tr check from the graph tracing path

Each time we save a function entry from the function graph
tracer, we check if the trace array is set, which is wasteful
because it is set anyway before we start the tracer. All we need
is to ensure we have good read and write orderings. When we set
the trace array, we just need to guarantee it to be visible
before starting tracing.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
LKML-Reference: <1263453795-7496-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_functions_graph.c