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/idct.c

    r736 r748  
    1919
    2020// macro to use a shared TTY
    21 #define PRINTF(...)   lock_acquire( &tty_lock ); \
    22                        giet_tty_printf(__VA_ARGS__);  \
    23                        lock_release( &tty_lock );
     21#define PRINTF(...) do { lock_acquire( &tty_lock ); \
     22                         giet_tty_printf(__VA_ARGS__);  \
     23                         lock_release( &tty_lock ); } while(0);
    2424
    2525// Useful constants
     
    214214#if (DEBUG_IDCT > 1)
    215215if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    216  PRINTF("\nIDCT[%d] completes block %d/%d in image %d\n"
     216PRINTF("\nIDCT[%d] completes block %d/%d in image %d\n"
    217217         "  %x  %x  %x  %x  %x  %x  %x  %x\n"
    218218         "  %x  %x  %x  %x  %x  %x  %x  %x\n"
     
    231231         bout[40], bout[41], bout[42], bout[43], bout[44], bout[45], bout[46], bout[47],
    232232         bout[48], bout[49], bout[50], bout[51], bout[52], bout[53], bout[54], bout[55],
    233          bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]) }
     233         bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]);
    234234}
    235235#endif
     
    238238#if DEBUG_IDCT
    239239if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    240 { PRINTF("\nIDCT[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ) }
     240PRINTF("\nIDCT[%d] completes image %d at cycle %d\n", index , image , giet_proctime() );
    241241#endif
    242242
Note: See TracChangeset for help on using the changeset viewer.