diff options
-rw-r--r-- | include/trace/sched.h | 4 | ||||
-rw-r--r-- | kernel/sched.c | 2 | ||||
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/include/trace/sched.h b/include/trace/sched.h index f4549d506b16..bc4c9eadc6ba 100644 --- a/include/trace/sched.h +++ b/include/trace/sched.h | |||
@@ -21,8 +21,8 @@ DECLARE_TRACE(sched_wakeup, | |||
21 | TPARGS(rq, p)); | 21 | TPARGS(rq, p)); |
22 | 22 | ||
23 | DECLARE_TRACE(sched_wakeup_new, | 23 | DECLARE_TRACE(sched_wakeup_new, |
24 | TPPROTO(struct rq *rq, struct task_struct *p), | 24 | TPPROTO(struct rq *rq, struct task_struct *p, int success), |
25 | TPARGS(rq, p)); | 25 | TPARGS(rq, p, success)); |
26 | 26 | ||
27 | DECLARE_TRACE(sched_switch, | 27 | DECLARE_TRACE(sched_switch, |
28 | TPPROTO(struct rq *rq, struct task_struct *prev, | 28 | TPPROTO(struct rq *rq, struct task_struct *prev, |
diff --git a/kernel/sched.c b/kernel/sched.c index d377097572f9..ac5a70a87d1e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2457,7 +2457,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags) | |||
2457 | p->sched_class->task_new(rq, p); | 2457 | p->sched_class->task_new(rq, p); |
2458 | inc_nr_running(rq); | 2458 | inc_nr_running(rq); |
2459 | } | 2459 | } |
2460 | trace_sched_wakeup_new(rq, p); | 2460 | trace_sched_wakeup_new(rq, p, 1); |
2461 | check_preempt_curr(rq, p, 0); | 2461 | check_preempt_curr(rq, p, 0); |
2462 | #ifdef CONFIG_SMP | 2462 | #ifdef CONFIG_SMP |
2463 | if (p->sched_class->task_wake_up) | 2463 | if (p->sched_class->task_wake_up) |
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 863390557b44..781d72ef873c 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
@@ -247,3 +247,4 @@ __init static int init_sched_switch_trace(void) | |||
247 | return register_tracer(&sched_switch_trace); | 247 | return register_tracer(&sched_switch_trace); |
248 | } | 248 | } |
249 | device_initcall(init_sched_switch_trace); | 249 | device_initcall(init_sched_switch_trace); |
250 | |||