diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-09-25 20:25:36 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-09-25 20:25:36 -0400 |
commit | e3245cf036c34e05801d05a246b474f56f688121 (patch) | |
tree | 894ecc2e8d314164a09c94a25055bcf910e89ad6 /kernel | |
parent | 73808f4b08407e599989cd79d0cc4434a10da33a (diff) |
Add more debug output to crash site.
Where is it being called from?
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_gsn_edf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/sched_gsn_edf.c b/kernel/sched_gsn_edf.c index 3f74296784..fc05daf114 100644 --- a/kernel/sched_gsn_edf.c +++ b/kernel/sched_gsn_edf.c | |||
@@ -198,7 +198,12 @@ static noinline void unlink(struct task_struct* t) | |||
198 | { | 198 | { |
199 | cpu_entry_t *entry; | 199 | cpu_entry_t *entry; |
200 | 200 | ||
201 | BUG_ON(!t); | 201 | if (unlikely(!t)) { |
202 | TRACE_BUG_ON(!t); | ||
203 | TRACE("called from: %p (%p)\n", __builtin_return_address(0), | ||
204 | __builtin_return_address(1)); | ||
205 | return; | ||
206 | } | ||
202 | 207 | ||
203 | if (t->rt_param.linked_on != NO_CPU) { | 208 | if (t->rt_param.linked_on != NO_CPU) { |
204 | /* unlink */ | 209 | /* unlink */ |
@@ -375,8 +380,10 @@ static reschedule_check_t gsnedf_scheduler_tick(void) | |||
375 | } | 380 | } |
376 | 381 | ||
377 | /* caller holds gsnedf_lock */ | 382 | /* caller holds gsnedf_lock */ |
378 | static void job_completion(struct task_struct *t) | 383 | static noinline void job_completion(struct task_struct *t) |
379 | { | 384 | { |
385 | BUG_ON(!t); | ||
386 | |||
380 | sched_trace_job_completion(t); | 387 | sched_trace_job_completion(t); |
381 | 388 | ||
382 | TRACE_TASK(t, "job_completion().\n"); | 389 | TRACE_TASK(t, "job_completion().\n"); |