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

    r736 r748  
    2323
    2424// macro to use a shared TTY
    25 #define PRINTF(...)   lock_acquire( &tty_lock ); \
    26                        giet_tty_printf(__VA_ARGS__);  \
    27                        lock_release( &tty_lock );
     25#define PRINTF(...) do { lock_acquire( &tty_lock ); \
     26                         giet_tty_printf(__VA_ARGS__);  \
     27                         lock_release( &tty_lock ); } while(0);
    2828
    2929//////////////////////////////////////////////////////////////
     
    5353
    5454    PRINTF("\n[MJPEG] thread LIBU[%d] starts on P[%d,%d,%d] / trdid = %x\n",
    55            index , x , y , p, (uint32_t)trdid_libu[index] )
     55           index , x , y , p, (uint32_t)trdid_libu[index] );
    5656
    5757    uint32_t image = index;
     
    8585#if (DEBUG_LIBU > 1)
    8686if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    87 { PRINTF("\nLIBU[%d] copy block[%d] for image %d\n",
    88          index, line * nblocks_w + column , image ) }
     87PRINTF("\nLIBU[%d] copy block[%d] for image %d\n",
     88         index, line * nblocks_w + column , image );
    8989#endif
    9090            }
     
    100100#if DEBUG_LIBU
    101101if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) )
    102 { PRINTF("\nLIBU[%d] completes image %d at cycle %d\n", index , image , time ) }
     102PRINTF("\nLIBU[%d] completes image %d at cycle %d\n", index , image , time );
    103103#endif
    104104        // register date of display for instrumentation
Note: See TracChangeset for help on using the changeset viewer.