diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:51 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:58:28 -0400 |
commit | e309b41dd65aa953f86765eeeecc941d8e1e8b8f (patch) | |
tree | 295d4ed6e2a766607f889a04b977ca27cc24929e /kernel/trace/trace_sched_wakeup.c | |
parent | b53dde9d34f2df396540988ebc65c33400f57b04 (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_wakeup.c')
-rw-r--r-- | kernel/trace/trace_sched_wakeup.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c index 3549e4154f1f..662679c78b66 100644 --- a/kernel/trace/trace_sched_wakeup.c +++ b/kernel/trace/trace_sched_wakeup.c | |||
@@ -27,12 +27,12 @@ static unsigned wakeup_prio = -1; | |||
27 | 27 | ||
28 | static DEFINE_SPINLOCK(wakeup_lock); | 28 | static DEFINE_SPINLOCK(wakeup_lock); |
29 | 29 | ||
30 | static void notrace __wakeup_reset(struct trace_array *tr); | 30 | static void __wakeup_reset(struct trace_array *tr); |
31 | 31 | ||
32 | /* | 32 | /* |
33 | * Should this new latency be reported/recorded? | 33 | * Should this new latency be reported/recorded? |
34 | */ | 34 | */ |
35 | static int notrace report_latency(cycle_t delta) | 35 | static int report_latency(cycle_t delta) |
36 | { | 36 | { |
37 | if (tracing_thresh) { | 37 | if (tracing_thresh) { |
38 | if (delta < tracing_thresh) | 38 | if (delta < tracing_thresh) |
@@ -44,7 +44,7 @@ static int notrace report_latency(cycle_t delta) | |||
44 | return 1; | 44 | return 1; |
45 | } | 45 | } |
46 | 46 | ||
47 | void notrace | 47 | void |
48 | wakeup_sched_switch(struct task_struct *prev, struct task_struct *next) | 48 | wakeup_sched_switch(struct task_struct *prev, struct task_struct *next) |
49 | { | 49 | { |
50 | unsigned long latency = 0, t0 = 0, t1 = 0; | 50 | unsigned long latency = 0, t0 = 0, t1 = 0; |
@@ -126,7 +126,7 @@ out: | |||
126 | atomic_dec(&tr->data[cpu]->disabled); | 126 | atomic_dec(&tr->data[cpu]->disabled); |
127 | } | 127 | } |
128 | 128 | ||
129 | static void notrace __wakeup_reset(struct trace_array *tr) | 129 | static void __wakeup_reset(struct trace_array *tr) |
130 | { | 130 | { |
131 | struct trace_array_cpu *data; | 131 | struct trace_array_cpu *data; |
132 | int cpu; | 132 | int cpu; |
@@ -147,7 +147,7 @@ static void notrace __wakeup_reset(struct trace_array *tr) | |||
147 | wakeup_task = NULL; | 147 | wakeup_task = NULL; |
148 | } | 148 | } |
149 | 149 | ||
150 | static void notrace wakeup_reset(struct trace_array *tr) | 150 | static void wakeup_reset(struct trace_array *tr) |
151 | { | 151 | { |
152 | unsigned long flags; | 152 | unsigned long flags; |
153 | 153 | ||
@@ -156,7 +156,7 @@ static void notrace wakeup_reset(struct trace_array *tr) | |||
156 | spin_unlock_irqrestore(&wakeup_lock, flags); | 156 | spin_unlock_irqrestore(&wakeup_lock, flags); |
157 | } | 157 | } |
158 | 158 | ||
159 | static notrace void | 159 | static void |
160 | wakeup_check_start(struct trace_array *tr, struct task_struct *p, | 160 | wakeup_check_start(struct trace_array *tr, struct task_struct *p, |
161 | struct task_struct *curr) | 161 | struct task_struct *curr) |
162 | { | 162 | { |
@@ -201,7 +201,7 @@ out: | |||
201 | atomic_dec(&tr->data[cpu]->disabled); | 201 | atomic_dec(&tr->data[cpu]->disabled); |
202 | } | 202 | } |
203 | 203 | ||
204 | notrace void | 204 | void |
205 | ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr) | 205 | ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr) |
206 | { | 206 | { |
207 | if (likely(!tracer_enabled)) | 207 | if (likely(!tracer_enabled)) |
@@ -210,7 +210,7 @@ ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr) | |||
210 | wakeup_check_start(wakeup_trace, wakee, curr); | 210 | wakeup_check_start(wakeup_trace, wakee, curr); |
211 | } | 211 | } |
212 | 212 | ||
213 | notrace void | 213 | void |
214 | ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr) | 214 | ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr) |
215 | { | 215 | { |
216 | if (likely(!tracer_enabled)) | 216 | if (likely(!tracer_enabled)) |
@@ -219,7 +219,7 @@ ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr) | |||
219 | wakeup_check_start(wakeup_trace, wakee, curr); | 219 | wakeup_check_start(wakeup_trace, wakee, curr); |
220 | } | 220 | } |
221 | 221 | ||
222 | static notrace void start_wakeup_tracer(struct trace_array *tr) | 222 | static void start_wakeup_tracer(struct trace_array *tr) |
223 | { | 223 | { |
224 | wakeup_reset(tr); | 224 | wakeup_reset(tr); |
225 | 225 | ||
@@ -237,12 +237,12 @@ static notrace void start_wakeup_tracer(struct trace_array *tr) | |||
237 | return; | 237 | return; |
238 | } | 238 | } |
239 | 239 | ||
240 | static notrace void stop_wakeup_tracer(struct trace_array *tr) | 240 | static void stop_wakeup_tracer(struct trace_array *tr) |
241 | { | 241 | { |
242 | tracer_enabled = 0; | 242 | tracer_enabled = 0; |
243 | } | 243 | } |
244 | 244 | ||
245 | static notrace void wakeup_tracer_init(struct trace_array *tr) | 245 | static void wakeup_tracer_init(struct trace_array *tr) |
246 | { | 246 | { |
247 | wakeup_trace = tr; | 247 | wakeup_trace = tr; |
248 | 248 | ||
@@ -250,7 +250,7 @@ static notrace void wakeup_tracer_init(struct trace_array *tr) | |||
250 | start_wakeup_tracer(tr); | 250 | start_wakeup_tracer(tr); |
251 | } | 251 | } |
252 | 252 | ||
253 | static notrace void wakeup_tracer_reset(struct trace_array *tr) | 253 | static void wakeup_tracer_reset(struct trace_array *tr) |
254 | { | 254 | { |
255 | if (tr->ctrl) { | 255 | if (tr->ctrl) { |
256 | stop_wakeup_tracer(tr); | 256 | stop_wakeup_tracer(tr); |
@@ -267,14 +267,14 @@ static void wakeup_tracer_ctrl_update(struct trace_array *tr) | |||
267 | stop_wakeup_tracer(tr); | 267 | stop_wakeup_tracer(tr); |
268 | } | 268 | } |
269 | 269 | ||
270 | static void notrace wakeup_tracer_open(struct trace_iterator *iter) | 270 | static void wakeup_tracer_open(struct trace_iterator *iter) |
271 | { | 271 | { |
272 | /* stop the trace while dumping */ | 272 | /* stop the trace while dumping */ |
273 | if (iter->tr->ctrl) | 273 | if (iter->tr->ctrl) |
274 | stop_wakeup_tracer(iter->tr); | 274 | stop_wakeup_tracer(iter->tr); |
275 | } | 275 | } |
276 | 276 | ||
277 | static void notrace wakeup_tracer_close(struct trace_iterator *iter) | 277 | static void wakeup_tracer_close(struct trace_iterator *iter) |
278 | { | 278 | { |
279 | /* forget about any processes we were recording */ | 279 | /* forget about any processes we were recording */ |
280 | if (iter->tr->ctrl) | 280 | if (iter->tr->ctrl) |