- Timestamp:
- Feb 12, 2015 2:04:34 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98233
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r53116 r54179 190 190 /** HPET legacy mode notification interface. */ 191 191 PDMIHPETLEGACYNOTIFY IHpetLegacyNotify; 192 193 /** Number of IRQs that's been raised. */ 194 STAMCOUNTER StatRTCIrq; 195 /** Number of times the timer callback handler ran. */ 196 STAMCOUNTER StatRTCTimerCB; 192 197 } RTCSTATE; 193 198 /** Pointer to the RTC device state. */ … … 250 255 { 251 256 if (!pThis->fDisabledByHpet) 257 { 252 258 PDMDevHlpISASetIrq(pThis->CTX_SUFF(pDevIns), pThis->irq, iLevel); 259 if (iLevel) 260 STAM_COUNTER_INC(&pThis->StatRTCIrq); 261 } 253 262 } 254 263 … … 546 555 547 556 rtc_timer_update(pThis, pThis->next_periodic_time); 557 STAM_COUNTER_INC(&pThis->StatRTCTimerCB); 548 558 pThis->cmos_data[RTC_REG_C] |= 0xc0; 549 559 … … 1223 1233 PDMDevHlpDBGFInfoRegister(pDevIns, "cmos2", "Display CMOS Bank 2 Info (0x0e-0x7f). No arguments.", rtcCmosBank2Info); 1224 1234 PDMDevHlpDBGFInfoRegister(pDevIns, "rtc", "Display CMOS RTC (0x00-0x0d). No arguments. See also cmos1 & cmos2", rtcCmosClockInfo); 1235 1236 /* 1237 * Register statistics. 1238 */ 1239 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatRTCIrq, STAMTYPE_COUNTER, "/TM/RTC/Irq", STAMUNIT_OCCURENCES, "The number of times a RTC interrupt was triggered."); 1240 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatRTCTimerCB, STAMTYPE_COUNTER, "/TM/RTC/TimerCB", STAMUNIT_OCCURENCES, "The number of times the RTC timer callback ran."); 1241 1225 1242 return VINF_SUCCESS; 1226 1243 }
Note:
See TracChangeset
for help on using the changeset viewer.