[Linux-hls-cvs] cbs/src cbs.c,1.2,1.3
Status: Pre-Alpha
Brought to you by:
lucabe
|
From: Luca A. <lu...@us...> - 2004-06-20 13:11:40
|
Update of /cvsroot/linux-hls/cbs/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15683/src Modified Files: cbs.c Log Message: - Better debugging Index: cbs.c =================================================================== RCS file: /cvsroot/linux-hls/cbs/src/cbs.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cbs.c 9 Apr 2004 13:22:18 -0000 1.2 --- cbs.c 20 Jun 2004 13:11:31 -0000 1.3 *************** *** 24,27 **** --- 24,28 ---- + static unsigned long long int prev_exec_set_time = 0; static unsigned long long int last_update_time = 0; static struct cbs_struct *exec = NULL; *************** *** 357,360 **** --- 358,362 ---- cbs_dispatch(new_exec, time, 0); exec = new_exec; + prev_exec_set_time = time; } } *************** *** 380,385 **** #ifndef __MULTITASK__ if (current != exec->task) { ! sched_warning("CBS WARNING: current (%d) != Exec (%d)!!!\n", ! current->pid, exec->task->pid); } #endif --- 382,388 ---- #ifndef __MULTITASK__ if (current != exec->task) { ! sched_warning("CBS WARNING: current (%d) != Exec (%d) in cbs_postpone() --- %Lu - %Lu = %Lu (%ld)!!!\n", ! current->pid, exec->task->pid, prev_exec_set_time, time, time - prev_exec_set_time, ! clock2us(time - prev_exec_set_time)); } #endif *************** *** 490,494 **** #ifndef __MULTITASK__ if (current != exec->task) { ! sched_warning("CBS WARNING: current (%d) != Exec (%d)!!!\n", current->pid, exec->task->pid); } --- 493,497 ---- #ifndef __MULTITASK__ if (current != exec->task) { ! sched_warning("CBS WARNING: current (%d) != Exec (%d) in sleep_postpone()!!!\n", current->pid, exec->task->pid); } |