tracing: Prevent wasting time evaluating parameters in trace_preempt_on/off
authorMinho Ban <mhban@samsung.com>
Mon, 7 May 2012 02:36:00 +0000 (11:36 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 May 2012 13:33:52 +0000 (09:33 -0400)
commitb02ee9a33b65bcc4ad13c12a0b04afdaab3ddd8d
treebf634618536dd15ffb8d0129efeb7aac312279c6
parent19631cb3d67c24c8b1fa58bc69bc2fed8d15095d
tracing: Prevent wasting time evaluating parameters in trace_preempt_on/off

This fixes spending time for evaluating parameters in trace_preempt_on/off when
the tracer config is off.

The patch mainly inspired by Steven Rostedt, thanks Steven.

Link: http://lkml.kernel.org/r/4FA73510.7070705@samsung.com
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Turner <pjt@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Minho Ban <mhban@samsung.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h