Changeset 549 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Feb 2, 2007 1:58:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r547 r549 254 254 STAMPROFILEADV StatTdtePollGC; 255 255 STAMPROFILEADV StatTdtePollHC; 256 STAMPROFILEADV StatTmdStoreGC; 257 STAMPROFILEADV StatTmdStoreHC; 258 STAMPROFILEADV StatRdtePollGC; 259 STAMPROFILEADV StatRdtePollHC; 256 260 STAMPROFILE StatXmitQueue; 257 261 STAMPROFILEADV StatXmitQueueFlushGC; … … 602 606 DECLINLINE(void) pcnetTmdStorePassHost(PCNetState *pData, TMD *tmd, RTGCPHYS addr) 603 607 { 608 STAM_PROFILE_ADV_START(&pData->CTXSUFF(StatTmdStore), a); 604 609 PPDMDEVINS pDevIns = PCNETSTATE_2_DEVINS(pData); 605 610 if (!BCR_SWSTYLE(pData)) … … 634 639 PDMDevHlpPhysWrite(pDevIns, addr+7, (uint8_t*)xda + 7, 1); 635 640 } 641 STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatTmdStore), a); 636 642 } 637 643 … … 1413 1419 static void pcnetRdtePoll(PCNetState *pData, bool fSkipCurrent=false) 1414 1420 { 1421 STAM_PROFILE_ADV_START(&pData->CTXSUFF(StatRdtePoll), a); 1415 1422 /* assume lack of a next receive descriptor */ 1416 1423 CSR_NRST(pData) = 0; … … 1435 1442 CSR_CRBC(pData) = CSR_CRST(pData) = 0; 1436 1443 if (!rmd.rmd1.own) 1444 { 1445 STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a); 1437 1446 return; 1447 } 1438 1448 if (RT_LIKELY(!IS_RMD_BAD(rmd))) 1439 1449 { … … 1452 1462 else 1453 1463 { 1464 STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a); 1454 1465 /* This is not problematic since we don't own the descriptor */ 1455 1466 LogRel(("PCNet#%d: BAD RMD ENTRIES AT 0x%08x (i=%d)\n", … … 1469 1480 CSR_NRBC(pData) = 0; 1470 1481 if (!rmd.rmd1.own) 1482 { 1483 STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a); 1471 1484 return; 1485 } 1472 1486 if (RT_LIKELY(!IS_RMD_BAD(rmd))) 1473 1487 { … … 1479 1493 else 1480 1494 { 1495 STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a); 1481 1496 /* This is not problematic since we don't own the descriptor */ 1482 1497 LogRel(("PCNet#%d: BAD RMD ENTRIES + AT 0x%08x (i=%d)\n", … … 1494 1509 CSR_CRBC(pData) = CSR_NRBC(pData) = CSR_CRST(pData) = 0; 1495 1510 } 1511 STAM_PROFILE_ADV_STOP(&pData->CTXSUFF(StatRdtePoll), a); 1496 1512 } 1497 1513 … … 4141 4157 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in GC", "/Devices/PCNet%d/TdtePollGC", iInstance); 4142 4158 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in HC", "/Devices/PCNet%d/TdtePollHC", iInstance); 4159 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatRdtePollGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in GC", "/Devices/PCNet%d/RdtePollGC", iInstance); 4160 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatRdtePollHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet RdtePoll in HC", "/Devices/PCNet%d/RdtePollHC", iInstance); 4161 4162 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTmdStoreGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in GC", "/Devices/PCNet%d/TmdPollGC", iInstance); 4163 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTmdStoreHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TmdStore in HC", "/Devices/PCNet%d/TmdPollHC", iInstance); 4164 4143 4165 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatXmitQueue, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet xmit queue", "/Devices/PCNet%d/XmitQueue", iInstance); 4144 4166 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatXmitQueueFlushGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet xmit queue flushes from GC", "/Devices/PCNet%d/XmitQueueFlushGC", iInstance);
Note:
See TracChangeset
for help on using the changeset viewer.