diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 21:20:53 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 21:07:57 +0200 |
commit | d9af56fbd8b37181bffaad060f74aa2e17382874 (patch) | |
tree | 265ac086e53c8191e8bc19fef98b2dea8cc93723 /kernel/trace/trace_sched_switch.c | |
parent | 36dfe9252bd4c9b55e8454363fb7e444c92c5030 (diff) | |
download | kernel_samsung_tuna-d9af56fbd8b37181bffaad060f74aa2e17382874.zip kernel_samsung_tuna-d9af56fbd8b37181bffaad060f74aa2e17382874.tar.gz kernel_samsung_tuna-d9af56fbd8b37181bffaad060f74aa2e17382874.tar.bz2 |
ftrace: fix cmdline tracing
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 5555b90..5a217e8 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c @@ -29,6 +29,8 @@ ctx_switch_func(void *__rq, struct task_struct *prev, struct task_struct *next) if (!tracer_enabled) return; + tracing_record_cmdline(prev); + local_irq_save(flags); cpu = raw_smp_processor_id(); data = tr->data[cpu]; @@ -56,6 +58,8 @@ wakeup_func(void *__rq, struct task_struct *wakee, struct task_struct *curr) if (!tracer_enabled) return; + tracing_record_cmdline(curr); + local_irq_save(flags); cpu = raw_smp_processor_id(); data = tr->data[cpu]; @@ -75,8 +79,6 @@ void ftrace_ctx_switch(void *__rq, struct task_struct *prev, struct task_struct *next) { - tracing_record_cmdline(prev); - /* * If tracer_switch_func only points to the local * switch func, it still needs the ptr passed to it. @@ -93,8 +95,6 @@ void ftrace_wake_up_task(void *__rq, struct task_struct *wakee, struct task_struct *curr) { - tracing_record_cmdline(curr); - wakeup_func(__rq, wakee, curr); /* |