diff options
| author | Frederic Weisbecker <[email protected]> | 2008-10-28 19:17:38 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2008-10-28 18:15:58 +0000 |
| commit | 0b6e4d56bf71866a2b58daa8323cf747988ce7e4 (patch) | |
| tree | abda53ec941c887283d496abf5d364ba80f72d5e /security/selinux/hooks.c | |
| parent | Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/... (diff) | |
| download | kernel-0b6e4d56bf71866a2b58daa8323cf747988ce7e4.tar.gz kernel-0b6e4d56bf71866a2b58daa8323cf747988ce7e4.zip | |
ftrace: perform an initialization for ftrace to enable it
Impact: corrects a bug which made the non-dyn function tracer not functional
With latest git, the non-dynamic function tracer didn't get any trace.
The problem was the fact that ftrace_enabled wasn't initialized to 1
because ftrace hasn't any init function when DYNAMIC_FTRACE is disabled.
So when a tracer tries to register an ftrace_ops struct,
__register_ftrace_function failed to set the hook.
This patch corrects it by setting an init function to initialize
ftrace during the boot.
Signed-off-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
