diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-19 17:45:23 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-19 17:45:23 -0400 |
commit | 9abdf662179d297bc60786883aefdb06a5ee2c95 (patch) | |
tree | ae7c1bb442e57991091cf4b7f28ddda9cf2f3649 /kernel | |
parent | efcf5b3b66ad9df13e9e53dea3a443a254f6e62b (diff) |
litmus core: trace task state on wake ups of RT tasks.
Helps when debugging wake-up related crashes.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 818264d50f..1a5d73e744 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1525,7 +1525,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync) | |||
1525 | #endif | 1525 | #endif |
1526 | 1526 | ||
1527 | if (is_realtime(p)) | 1527 | if (is_realtime(p)) |
1528 | TRACE_TASK(p, "try_to_wake_up()\n"); | 1528 | TRACE_TASK(p, "try_to_wake_up() state:%d\n", p->state); |
1529 | rq = task_rq_lock(p, &flags); | 1529 | rq = task_rq_lock(p, &flags); |
1530 | old_state = p->state; | 1530 | old_state = p->state; |
1531 | if (!(old_state & state)) | 1531 | if (!(old_state & state)) |
@@ -1661,7 +1661,7 @@ out_running: | |||
1661 | p->state = TASK_RUNNING; | 1661 | p->state = TASK_RUNNING; |
1662 | out: | 1662 | out: |
1663 | if (is_realtime(p)) | 1663 | if (is_realtime(p)) |
1664 | TRACE_TASK(p, "try_to_wake_up() done, p->state=%d\n", p->state); | 1664 | TRACE_TASK(p, "try_to_wake_up() done state:%d\n", p->state); |
1665 | task_rq_unlock(rq, &flags); | 1665 | task_rq_unlock(rq, &flags); |
1666 | tick_no_rqlock(); | 1666 | tick_no_rqlock(); |
1667 | return success; | 1667 | return success; |