diff options
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index b073ffda2bf2..b3252d165e22 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -87,6 +87,7 @@ | |||
87 | #include "../smpboot.h" | 87 | #include "../smpboot.h" |
88 | 88 | ||
89 | #include <litmus/trace.h> | 89 | #include <litmus/trace.h> |
90 | #include <litmus/sched_trace.h> | ||
90 | 91 | ||
91 | #define CREATE_TRACE_POINTS | 92 | #define CREATE_TRACE_POINTS |
92 | #include <trace/events/sched.h> | 93 | #include <trace/events/sched.h> |
@@ -1968,6 +1969,8 @@ asmlinkage void schedule_tail(struct task_struct *prev) | |||
1968 | rq = this_rq(); | 1969 | rq = this_rq(); |
1969 | finish_task_switch(rq, prev); | 1970 | finish_task_switch(rq, prev); |
1970 | 1971 | ||
1972 | sched_trace_task_switch_to(current); | ||
1973 | |||
1971 | /* | 1974 | /* |
1972 | * FIXME: do we need to worry about rq being invalidated by the | 1975 | * FIXME: do we need to worry about rq being invalidated by the |
1973 | * task_switch? | 1976 | * task_switch? |
@@ -2987,6 +2990,7 @@ need_resched: | |||
2987 | */ | 2990 | */ |
2988 | litmus_need_resched_nonpreemptible: | 2991 | litmus_need_resched_nonpreemptible: |
2989 | TS_SCHED_START; | 2992 | TS_SCHED_START; |
2993 | sched_trace_task_switch_away(prev); | ||
2990 | 2994 | ||
2991 | schedule_debug(prev); | 2995 | schedule_debug(prev); |
2992 | 2996 | ||
@@ -3052,6 +3056,7 @@ litmus_need_resched_nonpreemptible: | |||
3052 | } | 3056 | } |
3053 | 3057 | ||
3054 | TS_SCHED2_START(prev); | 3058 | TS_SCHED2_START(prev); |
3059 | sched_trace_task_switch_to(current); | ||
3055 | 3060 | ||
3056 | post_schedule(rq); | 3061 | post_schedule(rq); |
3057 | 3062 | ||