diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:51 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:04:28 -0400 |
commit | 8ac0fca4ccb355ce50471d7aa3f10f5900b28b95 (patch) | |
tree | 39b9f0b863692d6e3f23eef85bed68072734d6fb /kernel | |
parent | 86387f7ee5d3273ff4859e2c64ce656639b6ca65 (diff) |
ftrace: sched tracer fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 | ||||
-rw-r--r-- | kernel/trace/trace_sched_wakeup.c | 13 |
2 files changed, 4 insertions, 11 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 328494e28df2..53ab1174664f 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2613,7 +2613,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags) | |||
2613 | p->sched_class->task_new(rq, p); | 2613 | p->sched_class->task_new(rq, p); |
2614 | inc_nr_running(rq); | 2614 | inc_nr_running(rq); |
2615 | } | 2615 | } |
2616 | ftrace_wake_up_new_task(p, rq->curr); | 2616 | ftrace_wake_up_task(p, rq->curr); |
2617 | check_preempt_curr(rq, p); | 2617 | check_preempt_curr(rq, p); |
2618 | #ifdef CONFIG_SMP | 2618 | #ifdef CONFIG_SMP |
2619 | if (p->sched_class->task_wake_up) | 2619 | if (p->sched_class->task_wake_up) |
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c index 87fa7b253b57..2a012423f9d0 100644 --- a/kernel/trace/trace_sched_wakeup.c +++ b/kernel/trace/trace_sched_wakeup.c | |||
@@ -201,20 +201,13 @@ out: | |||
201 | atomic_dec(&tr->data[cpu]->disabled); | 201 | atomic_dec(&tr->data[cpu]->disabled); |
202 | } | 202 | } |
203 | 203 | ||
204 | void | 204 | void wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr) |
205 | wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr) | ||
206 | { | 205 | { |
207 | if (likely(!tracer_enabled)) | 206 | if (likely(!tracer_enabled)) |
208 | return; | 207 | return; |
209 | 208 | ||
210 | wakeup_check_start(wakeup_trace, wakee, curr); | 209 | tracing_record_cmdline(curr); |
211 | } | 210 | tracing_record_cmdline(wakee); |
212 | |||
213 | void | ||
214 | ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr) | ||
215 | { | ||
216 | if (likely(!tracer_enabled)) | ||
217 | return; | ||
218 | 211 | ||
219 | wakeup_check_start(wakeup_trace, wakee, curr); | 212 | wakeup_check_start(wakeup_trace, wakee, curr); |
220 | } | 213 | } |