Ignore:
Timestamp:
Dec 16, 2015, 1:03:16 PM (9 years ago)
Author:
alain
Message:

Modify instrumentation to save results on virtual disk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/mjpeg/iqzz.c

    r736 r748  
    1313
    1414// macro to use a shared TTY
    15 #define PRINTF(...)   lock_acquire( &tty_lock ); \
    16                        giet_tty_printf(__VA_ARGS__);  \
    17                        lock_release( &tty_lock );
     15#define PRINTF(...) do { lock_acquire( &tty_lock ); \
     16                         giet_tty_printf(__VA_ARGS__);  \
     17                         lock_release( &tty_lock ); } while(0);
    1818
    1919//////////////////////////////////////////////////////////////
     
    5656
    5757    PRINTF("\n[MJPEG] thread IQZZ[%d] starts on P[%d,%d,%d] / trdid = %x\n",
    58            index , x , y , p, (uint32_t)trdid_iqzz[index] )
     58           index , x , y , p, (uint32_t)trdid_iqzz[index] );
    5959
    6060
     
    6868#if (DEBUG_IQZZ > 1)
    6969if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    70 { PRINTF("\nIQZZ[%d] get quantisation coefs for image %d\n"
     70PRINTF("\nIQZZ[%d] get quantisation coefs for image %d\n"
    7171         "%d  %d  %d  %d  %d  %d  %d  %d\n"
    7272         "%d  %d  %d  %d  %d  %d  %d  %d\n"
     
    8585         QT[40],QT[41],QT[42],QT[43],QT[44],QT[45],QT[46],QT[47],
    8686         QT[48],QT[49],QT[50],QT[51],QT[52],QT[53],QT[54],QT[55],
    87          QT[56],QT[57],QT[58],QT[59],QT[60],QT[61],QT[62],QT[63] ) }
     87         QT[56],QT[57],QT[58],QT[59],QT[60],QT[61],QT[62],QT[63] );
    8888#endif
    8989
     
    104104#if (DEBUG_IQZZ > 1)
    105105if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    106 { PRINTF("\nIQZZ[%d] completes block %d/%d in image %d\n"
     106PRINTF("\nIQZZ[%d] completes block %d/%d in image %d\n"
    107107         "  %d  %d  %d  %d  %d  %d  %d  %d\n"
    108108         "  %d  %d  %d  %d  %d  %d  %d  %d\n"
     
    121121         bout[40], bout[41], bout[42], bout[43], bout[44], bout[45], bout[46], bout[47],
    122122         bout[48], bout[49], bout[50], bout[51], bout[52], bout[53], bout[54], bout[55],
    123          bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]) }
     123         bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]);
    124124#endif
    125125        }  // end for blocks
     
    127127#if DEBUG_IQZZ
    128128if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    129 { PRINTF("\nIQZZ[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ) }
     129PRINTF("\nIQZZ[%d] completes image %d at cycle %d\n", index , image , giet_proctime() );
    130130#endif
    131131
Note: See TracChangeset for help on using the changeset viewer.