return tracer_enabled;
}
-/* function tracing enabled */
-int ftrace_function_enabled;
-
/*
* trace_buf_size is the size in bytes that is allocated
* for a buffer. Note, the number of bytes is always rounded
extern cycle_t ftrace_now(int cpu);
-#ifdef CONFIG_FUNCTION_TRACER
-void tracing_start_function_trace(void);
-void tracing_stop_function_trace(void);
-#else
-# define tracing_start_function_trace() do { } while (0)
-# define tracing_stop_function_trace() do { } while (0)
-#endif
-
-extern int ftrace_function_enabled;
-
#ifdef CONFIG_CONTEXT_SWITCH_TRACER
typedef void
(*tracer_switch_func_t)(void *private,
#include "trace.h"
+/* function tracing enabled */
+static int ftrace_function_enabled;
+
static struct trace_array *func_trace;
+static void tracing_start_function_trace(void);
+static void tracing_stop_function_trace(void);
+
static void start_function_trace(struct trace_array *tr)
{
func_trace = tr;
.opts = func_opts
};
-void tracing_start_function_trace(void)
+static void tracing_start_function_trace(void)
{
ftrace_function_enabled = 0;
ftrace_function_enabled = 1;
}
-void tracing_stop_function_trace(void)
+static void tracing_stop_function_trace(void)
{
ftrace_function_enabled = 0;
/* OK if they are not registered */