From: Steven Rostedt Date: Mon, 12 May 2008 19:20:43 +0000 (+0200) Subject: ftrace: add ftrace_enabled sysctl to disable mcount function X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0fc494fae96a7089f3651cb451f461c7291244c;p=pandora-kernel.git ftrace: add ftrace_enabled sysctl to disable mcount function This patch adds back the sysctl ftrace_enabled. This time it is defaulted to on, if DYNAMIC_FTRACE is configured. When ftrace_enabled is disabled, the ftrace function is set to the stub return. If DYNAMIC_FTRACE is also configured, on ftrace_enabled = 0, the registered ftrace functions will all be set to jmps, but no more new calls to ftrace recording (used to find the ftrace calling sites) will be called. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed