third_party/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
/**
 * Dump complete device state to log.
 *
 * @param   pThis          Pointer to device state.
 */
Dump complete device state to log.
@param   pThis          Pointer to device state.
Dump complete device state to log . @param pThis Pointer to device state .
static void e1kDumpState(PE1KSTATE pThis)
{
    RT_NOREF(pThis);
    for (int i = 0; i < E1K_NUM_OF_32BIT_REGS; ++i)
        E1kLog2(("%s %8.8s = %08x\n", pThis->szPrf, g_aE1kRegMap[i].abbrev, pThis->auRegs[i]));
# ifdef E1K_INT_STATS
    LogRel(("%s Interrupt attempts: %d\n", pThis->szPrf, pThis->uStatIntTry));
    LogRel(("%s Interrupts raised : %d\n", pThis->szPrf, pThis->uStatInt));
    LogRel(("%s Interrupts lowered: %d\n", pThis->szPrf, pThis->uStatIntLower));
    LogRel(("%s ICR outside ISR   : %d\n", pThis->szPrf, pThis->uStatNoIntICR));
    LogRel(("%s IMS raised ints   : %d\n", pThis->szPrf, pThis->uStatIntIMS));
    LogRel(("%s Interrupts skipped: %d\n", pThis->szPrf, pThis->uStatIntSkip));
    LogRel(("%s Masked interrupts : %d\n", pThis->szPrf, pThis->uStatIntMasked));
    LogRel(("%s Early interrupts  : %d\n", pThis->szPrf, pThis->uStatIntEarly));
    LogRel(("%s Late interrupts   : %d\n", pThis->szPrf, pThis->uStatIntLate));
    LogRel(("%s Lost interrupts   : %d\n", pThis->szPrf, pThis->iStatIntLost));
    LogRel(("%s Interrupts by RX  : %d\n", pThis->szPrf, pThis->uStatIntRx));
    LogRel(("%s Interrupts by TX  : %d\n", pThis->szPrf, pThis->uStatIntTx));
    LogRel(("%s Interrupts by ICS : %d\n", pThis->szPrf, pThis->uStatIntICS));
    LogRel(("%s Interrupts by RDTR: %d\n", pThis->szPrf, pThis->uStatIntRDTR));
    LogRel(("%s Interrupts by RDMT: %d\n", pThis->szPrf, pThis->uStatIntRXDMT0));
    LogRel(("%s Interrupts by TXQE: %d\n", pThis->szPrf, pThis->uStatIntTXQE));
    LogRel(("%s TX int delay asked: %d\n", pThis->szPrf, pThis->uStatTxIDE));
    LogRel(("%s TX delayed:         %d\n", pThis->szPrf, pThis->uStatTxDelayed));
    LogRel(("%s TX delay expired:   %d\n", pThis->szPrf, pThis->uStatTxDelayExp));
    LogRel(("%s TX no report asked: %d\n", pThis->szPrf, pThis->uStatTxNoRS));
    LogRel(("%s TX abs timer expd : %d\n", pThis->szPrf, pThis->uStatTAD));
    LogRel(("%s TX int timer expd : %d\n", pThis->szPrf, pThis->uStatTID));
    LogRel(("%s RX abs timer expd : %d\n", pThis->szPrf, pThis->uStatRAD));
    LogRel(("%s RX int timer expd : %d\n", pThis->szPrf, pThis->uStatRID));
    LogRel(("%s TX CTX descriptors: %d\n", pThis->szPrf, pThis->uStatDescCtx));
    LogRel(("%s TX DAT descriptors: %d\n", pThis->szPrf, pThis->uStatDescDat));
    LogRel(("%s TX LEG descriptors: %d\n", pThis->szPrf, pThis->uStatDescLeg));
    LogRel(("%s Received frames   : %d\n", pThis->szPrf, pThis->uStatRxFrm));
    LogRel(("%s Transmitted frames: %d\n", pThis->szPrf, pThis->uStatTxFrm));
    LogRel(("%s TX frames up to 1514: %d\n", pThis->szPrf, pThis->uStatTx1514));
    LogRel(("%s TX frames up to 2962: %d\n", pThis->szPrf, pThis->uStatTx2962));
    LogRel(("%s TX frames up to 4410: %d\n", pThis->szPrf, pThis->uStatTx4410));
    LogRel(("%s TX frames up to 5858: %d\n", pThis->szPrf, pThis->uStatTx5858));
    LogRel(("%s TX frames up to 7306: %d\n", pThis->szPrf, pThis->uStatTx7306));
    LogRel(("%s TX frames up to 8754: %d\n", pThis->szPrf, pThis->uStatTx8754));
    LogRel(("%s TX frames up to 16384: %d\n", pThis->szPrf, pThis->uStatTx16384));
    LogRel(("%s TX frames up to 32768: %d\n", pThis->szPrf, pThis->uStatTx32768));
    LogRel(("%s Larger TX frames    : %d\n", pThis->szPrf, pThis->uStatTxLarge));
    LogRel(("%s Max TX Delay        : %lld\n", pThis->szPrf, pThis->uStatMaxTxDelay));
# endif 
}
static void e1kDumpState ( PE1KSTATE pThis ) { RT_NOREF ( pThis ) ; for ( int i = 0 ; i < E1K_NUM_OF_32BIT_REGS ; ++ i ) E1kLog2 ( ( " \n " , pThis -> szPrf , g_aE1kRegMap [ i ] . abbrev , pThis -> auRegs [ i ] ) ) ; # ifdef E1K_INT_STATS LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntTry ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatInt ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntLower ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatNoIntICR ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntIMS ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntSkip ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntMasked ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntEarly ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntLate ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> iStatIntLost ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntRx ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntTx ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntICS ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntRDTR ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntRXDMT0 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatIntTXQE ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTxIDE ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTxDelayed ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTxDelayExp ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTxNoRS ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTAD ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTID ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatRAD ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatRID ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatDescCtx ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatDescDat ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatDescLeg ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatRxFrm ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTxFrm ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx1514 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx2962 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx4410 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx5858 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx7306 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx8754 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx16384 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTx32768 ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatTxLarge ) ) ; LogRel ( ( " \n " , pThis -> szPrf , pThis -> uStatMaxTxDelay ) ) ; # endif }
Dump complete device state to log.
Dump complete device state to log .
/* E1K_INT_STATS */