diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 21:20:51 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 21:04:28 +0200 |
commit | 8ac0fca4ccb355ce50471d7aa3f10f5900b28b95 (patch) | |
tree | 39b9f0b863692d6e3f23eef85bed68072734d6fb /kernel/trace/trace_sched_wakeup.c | |
parent | 86387f7ee5d3273ff4859e2c64ce656639b6ca65 (diff) | |
download | op-kernel-dev-8ac0fca4ccb355ce50471d7aa3f10f5900b28b95.zip op-kernel-dev-8ac0fca4ccb355ce50471d7aa3f10f5900b28b95.tar.gz |
ftrace: sched tracer fix
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 | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c index 87fa7b2..2a01242 100644 --- a/kernel/trace/trace_sched_wakeup.c +++ b/kernel/trace/trace_sched_wakeup.c @@ -201,20 +201,13 @@ out: atomic_dec(&tr->data[cpu]->disabled); } -void -wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr) +void wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr) { if (likely(!tracer_enabled)) return; - wakeup_check_start(wakeup_trace, wakee, curr); -} - -void -ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr) -{ - if (likely(!tracer_enabled)) - return; + tracing_record_cmdline(curr); + tracing_record_cmdline(wakee); wakeup_check_start(wakeup_trace, wakee, curr); } |