Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140641
b: refs/heads/master
c: a225cdd
h: refs/heads/master
i:
  140639: c0b61d0
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Jan 16, 2009
1 parent 5d7cdf8 commit ebe39ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3eb36aa05329a47cbe201c151fd0024a4a3649cd
refs/heads/master: a225cdd263f340c864febb1992802fb5b08bc328
3 changes: 0 additions & 3 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ int tracing_is_enabled(void)
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
Expand Down
10 changes: 0 additions & 10 deletions trunk/kernel/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,6 @@ void __trace_stack(struct trace_array *tr,

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,
Expand Down
10 changes: 8 additions & 2 deletions trunk/kernel/trace/trace_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@

#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;
Expand Down Expand Up @@ -177,7 +183,7 @@ static struct tracer_flags func_flags = {
.opts = func_opts
};

void tracing_start_function_trace(void)
static void tracing_start_function_trace(void)
{
ftrace_function_enabled = 0;

Expand All @@ -194,7 +200,7 @@ void tracing_start_function_trace(void)
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 */
Expand Down

0 comments on commit ebe39ef

Please sign in to comment.