mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ftrace: remove static from function tracer functions
Impact: clean up After reorganizing the functions in trace.c and trace_function.c, they no longer need to be in global context. This patch makes the functions and one variable into static. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3eb36aa053
commit
a225cdd263
3 changed files with 8 additions and 15 deletions
|
@ -187,9 +187,6 @@ int tracing_is_enabled(void)
|
||||||
return tracer_enabled;
|
return tracer_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* function tracing enabled */
|
|
||||||
int ftrace_function_enabled;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* trace_buf_size is the size in bytes that is allocated
|
* trace_buf_size is the size in bytes that is allocated
|
||||||
* for a buffer. Note, the number of bytes is always rounded
|
* for a buffer. Note, the number of bytes is always rounded
|
||||||
|
|
|
@ -464,16 +464,6 @@ void __trace_stack(struct trace_array *tr,
|
||||||
|
|
||||||
extern cycle_t ftrace_now(int cpu);
|
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
|
#ifdef CONFIG_CONTEXT_SWITCH_TRACER
|
||||||
typedef void
|
typedef void
|
||||||
(*tracer_switch_func_t)(void *private,
|
(*tracer_switch_func_t)(void *private,
|
||||||
|
|
|
@ -16,8 +16,14 @@
|
||||||
|
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
|
|
||||||
|
/* function tracing enabled */
|
||||||
|
static int ftrace_function_enabled;
|
||||||
|
|
||||||
static struct trace_array *func_trace;
|
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)
|
static void start_function_trace(struct trace_array *tr)
|
||||||
{
|
{
|
||||||
func_trace = tr;
|
func_trace = tr;
|
||||||
|
@ -177,7 +183,7 @@ static struct tracer_flags func_flags = {
|
||||||
.opts = func_opts
|
.opts = func_opts
|
||||||
};
|
};
|
||||||
|
|
||||||
void tracing_start_function_trace(void)
|
static void tracing_start_function_trace(void)
|
||||||
{
|
{
|
||||||
ftrace_function_enabled = 0;
|
ftrace_function_enabled = 0;
|
||||||
|
|
||||||
|
@ -194,7 +200,7 @@ void tracing_start_function_trace(void)
|
||||||
ftrace_function_enabled = 1;
|
ftrace_function_enabled = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tracing_stop_function_trace(void)
|
static void tracing_stop_function_trace(void)
|
||||||
{
|
{
|
||||||
ftrace_function_enabled = 0;
|
ftrace_function_enabled = 0;
|
||||||
/* OK if they are not registered */
|
/* OK if they are not registered */
|
||||||
|
|
Loading…
Reference in a new issue