Changeset 88662 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 22, 2021 6:24:15 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143976
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHda.cpp
r88575 r88662 1339 1339 LogFunc(("[SD%RU8] Reset enter\n", uSD)); 1340 1340 1341 STAM_REL_PROFILE_START_NS(&pStreamR3->State.StatReset, a); 1341 1342 hdaStreamLock(pStreamShared); 1342 1343 … … 1358 1359 # endif 1359 1360 hdaStreamUnlock(pStreamShared); 1361 STAM_REL_PROFILE_STOP_NS(&pStreamR3->State.StatReset, a); 1360 1362 } 1361 1363 else … … 1366 1368 if (fInRun != fRun) 1367 1369 { 1370 STAM_REL_PROFILE_START_NS((fRun ? &pStreamR3->State.StatStart : &pStreamR3->State.StatStop), r); 1368 1371 Assert(!fReset && !fInReset); /* (code change paranoia, currently impossible ) */ 1369 1372 LogFunc(("[SD%RU8] State changed (fRun=%RTbool)\n", uSD, fRun)); … … 1468 1471 /* Make sure to leave the lock before (eventually) starting the timer. */ 1469 1472 hdaStreamUnlock(pStreamShared); 1473 STAM_REL_PROFILE_STOP_NS((fRun ? &pStreamR3->State.StatStart : &pStreamR3->State.StatStop), r); 1470 1474 } 1471 1475 } … … 5327 5331 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatDmaBufUsed, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_BYTES, 5328 5332 "Number of bytes used in the internal DMA buffer.", "Stream%u/DMABufUsed", idxStream); 5333 5334 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatStart, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 5335 "Starting the stream.", "Stream%u/Start", idxStream); 5336 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatStop, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 5337 "Stopping the stream.", "Stream%u/Stop", idxStream); 5338 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatReset, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_NS_PER_CALL, 5339 "Resetting the stream.", "Stream%u/Reset", idxStream); 5329 5340 } 5330 5341 -
trunk/src/VBox/Devices/Audio/DevHdaStream.h
r88572 r88662 326 326 /** Number of bytes involved in unresolved flow errors. */ 327 327 STAMCOUNTER StatDmaFlowErrorBytes; 328 329 STAMPROFILE StatStart; 330 STAMPROFILE StatReset; 331 STAMPROFILE StatStop; 332 STAMPROFILE StatUnusedPadding; 328 333 } State; 329 334 /** Debug bits. */
Note:
See TracChangeset
for help on using the changeset viewer.