summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-07-29 17:11:12 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-06 07:28:05 +0200
commit5e5bf483986ad86ad25f25eec5299c86eb2d1c57 (patch)
tree51ca52240afe82bab1366b1677d9f8a55bbee6fb
parent07868b086cca784f4b532fc2ab574ec3a73b468a (diff)
downloadlinux-3.10-5e5bf483986ad86ad25f25eec5299c86eb2d1c57.tar.gz
linux-3.10-5e5bf483986ad86ad25f25eec5299c86eb2d1c57.tar.bz2
linux-3.10-5e5bf483986ad86ad25f25eec5299c86eb2d1c57.zip
tracing/core: Turn ftrace_cpu_disabled into a global var
In order to prepare the moving of the function graph tracer insertion helpers from trace.c to trace_functions_graph.c, we need to export the ftrace_cpu_disabled variable. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/trace.c2
-rw-r--r--kernel/trace/trace.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 38a4a3ee749..b6211d60413 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -89,7 +89,7 @@ static int dummy_set_flag(u32 old_flags, u32 bit, int set)
*/
static int tracing_disabled = 1;
-static DEFINE_PER_CPU(local_t, ftrace_cpu_disabled);
+DEFINE_PER_CPU(local_t, ftrace_cpu_disabled);
static inline void ftrace_disable_cpu(void)
{
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 758b0dbed55..c7e92732982 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -519,6 +519,7 @@ extern int DYN_FTRACE_TEST_NAME(void);
extern int ring_buffer_expanded;
extern bool tracing_selftest_disabled;
+DECLARE_PER_CPU(local_t, ftrace_cpu_disabled);
#ifdef CONFIG_FTRACE_STARTUP_TEST
extern int trace_selftest_startup_function(struct tracer *trace,