Changeset 28665 in vbox for trunk/include
- Timestamp:
- Apr 23, 2010 5:24:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/intnetinline.h
r28075 r28665 430 430 if (RT_UNLIKELY(!ASMAtomicCmpXchgU32(&pRingBuf->offWriteInt, offNew, offWriteInt))) 431 431 return VERR_WRONG_ORDER; /* race */ 432 Log2((" INTNETRingAllocateFrame: offWriteInt: %#x -> %#x (1) (offRead=%#x)\n", offWriteInt, offNew, offRead));432 Log2(("intnetRingAllocateFrameInternal: offWriteInt: %#x -> %#x (1) (R=%#x T=%#x S=%#x)\n", offWriteInt, offNew, offRead, u16Type, cbFrame)); 433 433 434 434 PINTNETHDR pHdr = (PINTNETHDR)((uint8_t *)pRingBuf + offWriteInt); … … 451 451 if (RT_UNLIKELY(!ASMAtomicCmpXchgU32(&pRingBuf->offWriteInt, offNew, offWriteInt))) 452 452 return VERR_WRONG_ORDER; /* race */ 453 Log2((" INTNETRingAllocateFrame: offWriteInt: %#x -> %#x (2) (offRead=%#x)\n", offWriteInt, offNew, offRead));453 Log2(("intnetRingAllocateFrameInternal: offWriteInt: %#x -> %#x (2) (R=%#x T=%#x S=%#x)\n", offWriteInt, offNew, offRead, u16Type, cbFrame)); 454 454 455 455 PINTNETHDR pHdr = (PINTNETHDR)((uint8_t *)pRingBuf + offWriteInt); … … 471 471 if (RT_UNLIKELY(!ASMAtomicCmpXchgU32(&pRingBuf->offWriteInt, offNew, offWriteInt))) 472 472 return VERR_WRONG_ORDER; /* race */ 473 Log2((" INTNETRingAllocateFrame: offWriteInt: %#x -> %#x (3) (offRead=%#x)\n", offWriteInt, offNew, offRead));473 Log2(("intnetRingAllocateFrameInternal: offWriteInt: %#x -> %#x (3) (R=%#x T=%#x S=%#x)\n", offWriteInt, offNew, offRead, u16Type, cbFrame)); 474 474 475 475 PINTNETHDR pHdr = (PINTNETHDR)((uint8_t *)pRingBuf + offWriteInt); … … 563 563 offWriteCom = pRingBuf->offStart; 564 564 } 565 Log2(("INTNETRingCommitFrame: offWriteCom: %#x -> %#x ( offRead=%#x)\n", pRingBuf->offWriteCom, offWriteCom, pRingBuf->offReadX));565 Log2(("INTNETRingCommitFrame: offWriteCom: %#x -> %#x (R=%#x T=%#x S=%#x)\n", pRingBuf->offWriteCom, offWriteCom, pRingBuf->offReadX, pHdr->u16Type, cbFrame)); 566 566 ASMAtomicWriteU32(&pRingBuf->offWriteCom, offWriteCom); 567 567 STAM_REL_COUNTER_ADD(&pRingBuf->cbStatWritten, cbFrame); … … 621 621 } 622 622 623 Log2(("INTNETRingCommitFrame : offWriteCom: %#x -> %#x (offRead=%#x)\n", pRingBuf->offWriteCom, offWriteCom, pRingBuf->offReadX));623 Log2(("INTNETRingCommitFrameEx: offWriteCom: %#x -> %#x (R=%#x T=%#x S=%#x P=%#x)\n", pRingBuf->offWriteCom, offWriteCom, pRingBuf->offReadX, pHdr->u16Type, pHdr->cbFrame, cbAlignedFrame - cbAlignedUsed)); 624 624 ASMAtomicWriteU32(&pRingBuf->offWriteCom, offWriteCom); 625 625 STAM_REL_COUNTER_ADD(&pRingBuf->cbStatWritten, cbUsed);
Note:
See TracChangeset
for help on using the changeset viewer.