Changeset 6652 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jan 31, 2008 11:49:09 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r6548 r6652 239 239 bool afAlignment[1]; 240 240 uint32_t u32LinkSpeed; 241 242 STAMCOUNTER StatReceiveBytes; 243 STAMCOUNTER StatTransmitBytes; 241 244 242 245 #ifdef VBOX_WITH_STATISTICS … … 1743 1746 rmd.rmd1.bam = !CSR_PROM(pData) && is_bcast; 1744 1747 rmd.rmd2.mcnt = pkt_size; 1748 1749 STAM_REL_COUNTER_ADD(&pData->StatReceiveBytes, pkt_size); 1745 1750 } 1746 1751 else … … 1752 1757 rmd.rmd1.err = 1; 1753 1758 } 1759 1754 1760 /* write back, clear the own bit */ 1755 1761 pcnetRmdStorePassHost(pData, &rmd, PHYSADDR(pData, crda)); … … 1879 1885 pData->Led.Asserted.s.fWriting = pData->Led.Actual.s.fWriting = 1; 1880 1886 pData->pDrv->pfnSend(pData->pDrv, pData->SendFrame.pvBuf, pData->SendFrame.cb); 1887 STAM_REL_COUNTER_ADD(&pData->StatTransmitBytes, pData->SendFrame.cb); 1881 1888 pData->Led.Actual.s.fWriting = 0; 1882 1889 STAM_PROFILE_ADV_STOP(&pData->StatTransmitSend, a); … … 4491 4498 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTimer, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet Timer", "/Devices/PCNet%d/Timer", iInstance); 4492 4499 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatReceive, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet receive", "/Devices/PCNet%d/Receive", iInstance); 4500 #endif 4501 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatReceiveBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data received", "/Devices/PCNet%d/ReceiveBytes", iInstance); 4502 #ifdef VBOX_WITH_STATISTICS 4493 4503 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmit, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet transmit in HC", "/Devices/PCNet%d/Transmit/Total", iInstance); 4494 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmitSend, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in HC", "/Devices/PCNet%d/Transmit/Send", iInstance); 4504 #endif 4505 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmitBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data transmitted", "/Devices/PCNet%d/TransmitBytes", iInstance); 4506 #ifdef VBOX_WITH_STATISTICS 4507 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmitSend, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in HC","/Devices/PCNet%d/Transmit/Send", iInstance); 4495 4508 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in GC", "/Devices/PCNet%d/TdtePollGC", iInstance); 4496 4509 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in HC", "/Devices/PCNet%d/TdtePollHC", iInstance);
Note:
See TracChangeset
for help on using the changeset viewer.