Changeset 1269

Show
Ignore:
Timestamp:
07/05/08 08:01:24 (13 years ago)
Author:
ppalmers
Message:

add debug logging for dropped xmit packets. call packet handler with actual dropped packet counter, not the kernel one.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/libieee1394/IsoHandler.cpp

    r1266 r1269  
    638638    } 
    639639 
     640    #ifdef DEBUG 
     641    if (dropped > 0) { 
     642        debugOutput(DEBUG_LEVEL_VERBOSE, 
     643                    "(%p) OHCI issue on cycle %u (dropped_cycles=%d, last_cycle=%u, dropped=%d, skipped: %d)\n", 
     644                    this, cycle, dropped_cycles, m_last_cycle, dropped, skipped); 
     645    } 
     646    #endif 
     647 
    640648    if(m_Client) { 
    641649        enum raw1394_iso_disposition retval; 
    642         retval = m_Client->getPacket(data, length, tag, sy, pkt_ctr, dropped, skipped, m_max_packet_size); 
     650        retval = m_Client->getPacket(data, length, tag, sy, pkt_ctr, dropped_cycles, skipped, m_max_packet_size); 
    643651        #ifdef DEBUG 
    644652        if (*length > m_max_packet_size) { 
  • branches/libffado-2.0/src/libstreaming/generic/StreamProcessor.cpp

    r1266 r1269  
    499499        if(m_state == ePS_Running) { 
    500500            debugShowBackLogLines(200); 
    501             debugOutput(DEBUG_LEVEL_NORMAL, "dropped packets xrun\n"); 
     501            debugOutput(DEBUG_LEVEL_NORMAL, "dropped packets xrun (%u)\n", dropped_cycles); 
    502502            debugOutput(DEBUG_LEVEL_VERBOSE, "Should update state to WaitingForStreamDisable due to dropped packets xrun\n"); 
    503503            m_cycle_to_switch_state = CYCLE_TIMER_GET_CYCLES(pkt_ctr) + 1;