diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index cfa222a91539..463dcdb36ef8 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2467,6 +2467,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync) | |||
2467 | 2467 | ||
2468 | out_activate: | 2468 | out_activate: |
2469 | #endif /* CONFIG_SMP */ | 2469 | #endif /* CONFIG_SMP */ |
2470 | ftrace_wake_up_task(p, rq->curr); | ||
2470 | schedstat_inc(p, se.nr_wakeups); | 2471 | schedstat_inc(p, se.nr_wakeups); |
2471 | if (sync) | 2472 | if (sync) |
2472 | schedstat_inc(p, se.nr_wakeups_sync); | 2473 | schedstat_inc(p, se.nr_wakeups_sync); |
@@ -2611,6 +2612,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags) | |||
2611 | p->sched_class->task_new(rq, p); | 2612 | p->sched_class->task_new(rq, p); |
2612 | inc_nr_running(rq); | 2613 | inc_nr_running(rq); |
2613 | } | 2614 | } |
2615 | ftrace_wake_up_new_task(p, rq->curr); | ||
2614 | check_preempt_curr(rq, p); | 2616 | check_preempt_curr(rq, p); |
2615 | #ifdef CONFIG_SMP | 2617 | #ifdef CONFIG_SMP |
2616 | if (p->sched_class->task_wake_up) | 2618 | if (p->sched_class->task_wake_up) |
@@ -2783,6 +2785,7 @@ context_switch(struct rq *rq, struct task_struct *prev, | |||
2783 | struct mm_struct *mm, *oldmm; | 2785 | struct mm_struct *mm, *oldmm; |
2784 | 2786 | ||
2785 | prepare_task_switch(rq, prev, next); | 2787 | prepare_task_switch(rq, prev, next); |
2788 | ftrace_ctx_switch(prev, next); | ||
2786 | mm = next->mm; | 2789 | mm = next->mm; |
2787 | oldmm = prev->active_mm; | 2790 | oldmm = prev->active_mm; |
2788 | /* | 2791 | /* |