aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_switch.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:58:28 -0400
commite309b41dd65aa953f86765eeeecc941d8e1e8b8f (patch)
tree295d4ed6e2a766607f889a04b977ca27cc24929e /kernel/trace/trace_sched_switch.c
parentb53dde9d34f2df396540988ebc65c33400f57b04 (diff)
ftrace: remove notrace
now that we have a kbuild method for notrace, no need to pollute the C code with the annotations. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r--kernel/trace/trace_sched_switch.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 8d656672da93..b738eaca1dbe 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -17,7 +17,7 @@
17static struct trace_array *ctx_trace; 17static struct trace_array *ctx_trace;
18static int __read_mostly tracer_enabled; 18static int __read_mostly tracer_enabled;
19 19
20static void notrace 20static void
21ctx_switch_func(struct task_struct *prev, struct task_struct *next) 21ctx_switch_func(struct task_struct *prev, struct task_struct *next)
22{ 22{
23 struct trace_array *tr = ctx_trace; 23 struct trace_array *tr = ctx_trace;
@@ -57,7 +57,7 @@ void ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next)
57 wakeup_sched_switch(prev, next); 57 wakeup_sched_switch(prev, next);
58} 58}
59 59
60static notrace void sched_switch_reset(struct trace_array *tr) 60static void sched_switch_reset(struct trace_array *tr)
61{ 61{
62 int cpu; 62 int cpu;
63 63
@@ -67,18 +67,18 @@ static notrace void sched_switch_reset(struct trace_array *tr)
67 tracing_reset(tr->data[cpu]); 67 tracing_reset(tr->data[cpu]);
68} 68}
69 69
70static notrace void start_sched_trace(struct trace_array *tr) 70static void start_sched_trace(struct trace_array *tr)
71{ 71{
72 sched_switch_reset(tr); 72 sched_switch_reset(tr);
73 tracer_enabled = 1; 73 tracer_enabled = 1;
74} 74}
75 75
76static notrace void stop_sched_trace(struct trace_array *tr) 76static void stop_sched_trace(struct trace_array *tr)
77{ 77{
78 tracer_enabled = 0; 78 tracer_enabled = 0;
79} 79}
80 80
81static notrace void sched_switch_trace_init(struct trace_array *tr) 81static void sched_switch_trace_init(struct trace_array *tr)
82{ 82{
83 ctx_trace = tr; 83 ctx_trace = tr;
84 84
@@ -86,7 +86,7 @@ static notrace void sched_switch_trace_init(struct trace_array *tr)
86 start_sched_trace(tr); 86 start_sched_trace(tr);
87} 87}
88 88
89static notrace void sched_switch_trace_reset(struct trace_array *tr) 89static void sched_switch_trace_reset(struct trace_array *tr)
90{ 90{
91 if (tr->ctrl) 91 if (tr->ctrl)
92 stop_sched_trace(tr); 92 stop_sched_trace(tr);