Commit 0b54968f authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'tracing-fixes-for-linus' of...

Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  ftrace: fix trace_nop config select
  ftrace: perform an initialization for ftrace to enable it
parents effdb949 f3384b28
...@@ -8,7 +8,6 @@ config NOP_TRACER ...@@ -8,7 +8,6 @@ config NOP_TRACER
config HAVE_FUNCTION_TRACER config HAVE_FUNCTION_TRACER
bool bool
select NOP_TRACER
config HAVE_DYNAMIC_FTRACE config HAVE_DYNAMIC_FTRACE
bool bool
...@@ -28,6 +27,7 @@ config TRACING ...@@ -28,6 +27,7 @@ config TRACING
select RING_BUFFER select RING_BUFFER
select STACKTRACE select STACKTRACE
select TRACEPOINTS select TRACEPOINTS
select NOP_TRACER
menu "Tracers" menu "Tracers"
......
...@@ -1339,6 +1339,14 @@ void __init ftrace_init(void) ...@@ -1339,6 +1339,14 @@ void __init ftrace_init(void)
} }
#else #else
static int __init ftrace_nodyn_init(void)
{
ftrace_enabled = 1;
return 0;
}
device_initcall(ftrace_nodyn_init);
# define ftrace_startup() do { } while (0) # define ftrace_startup() do { } while (0)
# define ftrace_shutdown() do { } while (0) # define ftrace_shutdown() do { } while (0)
# define ftrace_startup_sysctl() do { } while (0) # define ftrace_startup_sysctl() do { } while (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment