aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_wakeup.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_wakeup.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_wakeup.c')
-rw-r--r--kernel/trace/trace_sched_wakeup.c28
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
28static DEFINE_SPINLOCK(wakeup_lock); 28static DEFINE_SPINLOCK(wakeup_lock);
29 29
30static void notrace __wakeup_reset(struct trace_array *tr); 30static 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 */
35static int notrace report_latency(cycle_t delta) 35static 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
47void notrace 47void
48wakeup_sched_switch(struct task_struct *prev, struct task_struct *next) 48wakeup_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
129static void notrace __wakeup_reset(struct trace_array *tr) 129static 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
150static void notrace wakeup_reset(struct trace_array *tr) 150static 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
159static notrace void 159static void
160wakeup_check_start(struct trace_array *tr, struct task_struct *p, 160wakeup_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
204notrace void 204void
205ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr) 205ftrace_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
213notrace void 213void
214ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr) 214ftrace_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
222static notrace void start_wakeup_tracer(struct trace_array *tr) 222static 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
240static notrace void stop_wakeup_tracer(struct trace_array *tr) 240static void stop_wakeup_tracer(struct trace_array *tr)
241{ 241{
242 tracer_enabled = 0; 242 tracer_enabled = 0;
243} 243}
244 244
245static notrace void wakeup_tracer_init(struct trace_array *tr) 245static 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
253static notrace void wakeup_tracer_reset(struct trace_array *tr) 253static 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
270static void notrace wakeup_tracer_open(struct trace_iterator *iter) 270static 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
277static void notrace wakeup_tracer_close(struct trace_iterator *iter) 277static 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)