Changeset 30587 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 2, 2010 6:13:29 PM (14 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r29669 r30587 1157 1157 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBufR3->cStatLost); 1158 1158 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBufR3->cStatBadFrames); 1159 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBufR3->StatSend1); 1160 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBufR3->StatSend2); 1161 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBufR3->StatRecv1); 1162 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBufR3->StatRecv2); 1159 1163 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatReceivedGso); 1160 1164 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatSentGso); … … 1546 1550 * Register statistics. 1547 1551 */ 1548 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Recv.cbStatWritten, "Bytes/Received", STAMUNIT_BYTES, "Number of received bytes."); 1549 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Send.cbStatWritten, "Bytes/Sent", STAMUNIT_BYTES, "Number of sent bytes."); 1550 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Recv.cOverflows, "Overflows/Recv", STAMUNIT_COUNT, "Number overflows."); 1551 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Send.cOverflows, "Overflows/Sent", STAMUNIT_COUNT, "Number overflows."); 1552 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Recv.cStatFrames, "Packets/Received", STAMUNIT_COUNT, "Number of received packets."); 1553 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Send.cStatFrames, "Packets/Sent", STAMUNIT_COUNT, "Number of sent packets."); 1554 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatReceivedGso, "Packets/Received-Gso", STAMUNIT_COUNT, "The GSO portion of the received packets."); 1555 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatSentGso, "Packets/Sent-Gso", STAMUNIT_COUNT, "The GSO portion of the sent packets."); 1556 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatSentR0, "Packets/Sent-R0", STAMUNIT_COUNT, "The ring-0 portion of the sent packets."); 1557 1558 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatLost, "Packets/Lost", STAMUNIT_COUNT, "Number of lost packets."); 1559 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatYieldsNok, "YieldOk", STAMUNIT_COUNT, "Number of times yielding helped fix an overflow."); 1560 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatYieldsOk, "YieldNok", STAMUNIT_COUNT, "Number of times yielding didn't help fix an overflow."); 1561 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatBadFrames, "BadFrames", STAMUNIT_COUNT, "Number of bad frames seed by the consumers."); 1552 PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->pBufR3->Recv.cbStatWritten, "Bytes/Received", STAMUNIT_BYTES, "Number of received bytes."); 1553 PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->pBufR3->Send.cbStatWritten, "Bytes/Sent", STAMUNIT_BYTES, "Number of sent bytes."); 1554 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Recv.cOverflows, "Overflows/Recv", "Number overflows."); 1555 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Send.cOverflows, "Overflows/Sent", "Number overflows."); 1556 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Recv.cStatFrames, "Packets/Received", "Number of received packets."); 1557 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->Send.cStatFrames, "Packets/Sent", "Number of sent packets."); 1558 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatReceivedGso, "Packets/Received-Gso", "The GSO portion of the received packets."); 1559 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatSentGso, "Packets/Sent-Gso", "The GSO portion of the sent packets."); 1560 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatSentR0, "Packets/Sent-R0", "The ring-0 portion of the sent packets."); 1561 1562 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatLost, "Packets/Lost", "Number of lost packets."); 1563 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatYieldsNok, "YieldOk", "Number of times yielding helped fix an overflow."); 1564 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatYieldsOk, "YieldNok", "Number of times yielding didn't help fix an overflow."); 1565 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->pBufR3->cStatBadFrames, "BadFrames", "Number of bad frames seed by the consumers."); 1566 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->pBufR3->StatSend1, "Send1", "Profiling IntNetR0IfSend."); 1567 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->pBufR3->StatSend2, "Send2", "Profiling sending to the trunk."); 1568 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->pBufR3->StatRecv1, "Recv1", "Reserved for future receive profiling."); 1569 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->pBufR3->StatRecv2, "Recv2", "Reserved for future receive profiling."); 1570 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->pBufR3->StatReserved, "Reserved", "Reserved for future use."); 1562 1571 #ifdef VBOX_WITH_STATISTICS 1563 PDMDrvHlpSTAMRegProfileAdv(pDrvIns, &pThis->StatReceive, "Receive", STAMUNIT_TICKS_PER_CALL,"Profiling packet receive runs.");1564 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->StatTransmit, "Transmit", STAMUNIT_TICKS_PER_CALL,"Profiling packet transmit runs.");1572 PDMDrvHlpSTAMRegProfileAdv(pDrvIns, &pThis->StatReceive, "Receive", "Profiling packet receive runs."); 1573 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->StatTransmit, "Transmit", "Profiling packet transmit runs."); 1565 1574 #endif 1566 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR0, "XmitWakeup-R0", STAMUNIT_COUNT,"Xmit thread wakeups from ring-0.");1567 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR3, "XmitWakeup-R3", STAMUNIT_COUNT,"Xmit thread wakeups from ring-3.");1568 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitProcessRing, "XmitProcessRing", STAMUNIT_COUNT,"Time xmit thread was told to process the ring.");1575 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR0, "XmitWakeup-R0", "Xmit thread wakeups from ring-0."); 1576 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR3, "XmitWakeup-R3", "Xmit thread wakeups from ring-3."); 1577 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitProcessRing, "XmitProcessRing", "Time xmit thread was told to process the ring."); 1569 1578 1570 1579 /* -
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r30557 r30587 2622 2622 AssertPtr(pThis); 2623 2623 AssertPtr(pNetwork); 2624 AssertPtr(pIfSender); 2624 2625 AssertPtr(pSG); 2625 2626 Assert(fDst); … … 2693 2694 * before sending, so we don't have to duplicate that effort here. 2694 2695 */ 2696 STAM_REL_PROFILE_START(&pIfSender->pIntBuf->StatSend2, a); 2695 2697 int rc; 2696 2698 if ( pSG->GsoCtx.u8Type == PDMNETWORKGSOTYPE_INVALID … … 2699 2701 else 2700 2702 rc = intnetR0TrunkIfSendGsoFallback(pThis, pIfSender, pSG, fDst); 2703 STAM_REL_PROFILE_STOP(&pIfSender->pIntBuf->StatSend2, a); 2701 2704 2702 2705 /** @todo failure statistics? */ … … 3338 3341 if (!pIf) 3339 3342 return VERR_INVALID_HANDLE; 3343 STAM_REL_PROFILE_START(&pIf->pIntBuf->StatSend1, a); 3340 3344 3341 3345 /* … … 3425 3429 */ 3426 3430 intnetR0BusyDecIf(pIf); 3431 STAM_REL_PROFILE_STOP(&pIf->pIntBuf->StatSend1, a); 3427 3432 intnetR0IfRelease(pIf, pSession); 3428 3433 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.