Changeset 19498 in vbox
- Timestamp:
- May 7, 2009 6:08:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAll.cpp
r19492 r19498 552 552 */ 553 553 TMTIMERSTATE enmState = pTimer->enmState; 554 Log2(("TMTimerDestroy: pTimer=%p:{.enmState=%s, .pszDesc='%s'} cRetries=%d\n",554 Log2(("TMTimerDestroy: %p:{.enmState=%s, .pszDesc='%s'} cRetries=%d\n", 555 555 pTimer, tmTimerState(enmState), R3STRING(pTimer->pszDesc), cRetries)); 556 556 switch (enmState) … … 653 653 */ 654 654 TMTIMERSTATE enmState = pTimer->enmState; 655 Log2(("TMTimerSet: pTimer=%p:{.enmState=%s, .pszDesc='%s'} cRetries=%d u64Expire=%llu\n",655 Log2(("TMTimerSet: %p:{.enmState=%s, .pszDesc='%s'} cRetries=%d u64Expire=%llu\n", 656 656 pTimer, tmTimerState(enmState), R3STRING(pTimer->pszDesc), cRetries, u64Expire)); 657 657 switch (enmState) … … 679 679 if (tmTimerTry(pTimer, TMTIMERSTATE_PENDING_SCHEDULE_SET_EXPIRE, enmState)) 680 680 { 681 Assert(!pTimer->offPrev);682 Assert(!pTimer->offNext);683 681 pTimer->u64Expire = u64Expire; 684 682 TM_SET_STATE(pTimer, TMTIMERSTATE_PENDING_SCHEDULE); … … 865 863 */ 866 864 TMTIMERSTATE enmState = pTimer->enmState; 867 Log2(("TMTimerStop: pTimer=%p:{.enmState=%s, .pszDesc='%s'} cRetries=%d\n",865 Log2(("TMTimerStop: %p:{.enmState=%s, .pszDesc='%s'} cRetries=%d\n", 868 866 pTimer, tmTimerState(enmState), R3STRING(pTimer->pszDesc), cRetries)); 869 867 switch (enmState) … … 1351 1349 switch (enmState) 1352 1350 { 1353 #define CASE(state) case state: return #state + sizeof("TMTIMERSTATE_") - 1 1354 CASE(TMTIMERSTATE_STOPPED); 1355 CASE(TMTIMERSTATE_ACTIVE); 1356 CASE(TMTIMERSTATE_EXPIRED); 1357 CASE(TMTIMERSTATE_PENDING_STOP); 1358 CASE(TMTIMERSTATE_PENDING_STOP_SCHEDULE); 1359 CASE(TMTIMERSTATE_PENDING_SCHEDULE_SET_EXPIRE); 1360 CASE(TMTIMERSTATE_PENDING_SCHEDULE); 1361 CASE(TMTIMERSTATE_PENDING_RESCHEDULE_SET_EXPIRE); 1362 CASE(TMTIMERSTATE_PENDING_RESCHEDULE); 1363 CASE(TMTIMERSTATE_PENDING_STOP_DESTROY); 1364 CASE(TMTIMERSTATE_PENDING_DESTROY); 1365 CASE(TMTIMERSTATE_FREE); 1351 #define CASE(num, state) \ 1352 case TMTIMERSTATE_##state: \ 1353 AssertCompile(TMTIMERSTATE_##state == (num)); \ 1354 return #num "-" #state 1355 CASE( 1,STOPPED); 1356 CASE( 2,ACTIVE); 1357 CASE( 3,EXPIRED); 1358 CASE( 4,PENDING_STOP); 1359 CASE( 5,PENDING_STOP_SCHEDULE); 1360 CASE( 6,PENDING_SCHEDULE_SET_EXPIRE); 1361 CASE( 7,PENDING_SCHEDULE); 1362 CASE( 8,PENDING_RESCHEDULE_SET_EXPIRE); 1363 CASE( 9,PENDING_RESCHEDULE); 1364 CASE(10,PENDING_STOP_DESTROY); 1365 CASE(11,PENDING_DESTROY); 1366 CASE(12,FREE); 1366 1367 default: 1367 1368 AssertMsgFailed(("Invalid state enmState=%d\n", enmState)); … … 1600 1601 * Do the scheduling. 1601 1602 */ 1602 Log2(("tmTimerQueueSchedule: pTimer=%p:{.enmState=%s, .enmClock=%d, .enmType=%d, .pszDesc=%s}\n",1603 Log2(("tmTimerQueueSchedule: %p:{.enmState=%s, .enmClock=%d, .enmType=%d, .pszDesc=%s}\n", 1603 1604 pTimer, tmTimerState(pTimer->enmState), pTimer->enmClock, pTimer->enmType, R3STRING(pTimer->pszDesc))); 1604 1605 tmTimerQueueScheduleOne(pQueue, pTimer); 1605 Log2(("tmTimerQueueSchedule: new %s\n", tmTimerState(pTimer->enmState)));1606 Log2(("tmTimerQueueSchedule: %p: new %s\n", pTimer, tmTimerState(pTimer->enmState))); 1606 1607 } /* foreach timer in current schedule batch. */ 1607 1608 } … … 1636 1637 { 1637 1638 case TMTIMERSTATE_ACTIVE: 1638 AssertMsg(!pCur->offScheduleNext, ("%s: %RI32\n", pszWhere, pCur->offScheduleNext)); 1639 AssertMsg( !pCur->offScheduleNext 1640 || pCur->enmState != TMTIMERSTATE_ACTIVE, 1641 ("%s: %RI32\n", pszWhere, pCur->offScheduleNext)); 1639 1642 break; 1640 1643 case TMTIMERSTATE_PENDING_STOP:
Note:
See TracChangeset
for help on using the changeset viewer.