Skip to content

Commit a8d7ad5

Browse files
Peter Zijlstraingomolnar
authored andcommitted
sched/tracing: Allow tracing the preemption decision on wakeup
Thomas noted that we do the wakeup preemption check after the wakeup trace point, this means the tracepoint cannot test/report this decision; which is rather important for latency sensitive workloads. Therefore move the tracepoint after doing the preemption check. Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Paul Turner <pjt@google.com> Cc: Mike Galbraith <efault@gmx.de> Link: http://lkml.kernel.org/r/1363254519.26965.9.camel@laptop Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent e75c8b4 commit a8d7ad5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/sched/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ static void ttwu_activate(struct rq *rq, struct task_struct *p, int en_flags)
12881288
static void
12891289
ttwu_do_wakeup(struct rq *rq, struct task_struct *p, int wake_flags)
12901290
{
1291-
trace_sched_wakeup(p, true);
12921291
check_preempt_curr(rq, p, wake_flags);
1292+
trace_sched_wakeup(p, true);
12931293

12941294
p->state = TASK_RUNNING;
12951295
#ifdef CONFIG_SMP

0 commit comments

Comments
 (0)