Changeset 581 for trunk/user/init


Ignore:
Timestamp:
Oct 10, 2018, 3:11:53 PM (6 years ago)
Author:
alain
Message:

1) Improve the busylock debug infrastructure.
2) introduce a non-distributed, but portable implementation for the pthread_barrier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/init/init.c

    r574 r581  
    2121#include <sys/wait.h>
    2222
    23 #define DEBUG_PROCESS_INIT    0
     23#define DEBUG_PROCESS_INIT    1
    2424
    2525// TODO improve the get_config() syscall to return nb_txt_channels
     
    5353    for( i = 1 ; i <  NB_TXT_CHANNELS ; i++ )
    5454    {
    55 
    56 #if DEBUG_PROCESS_INIT
    57 snprintf( string , 64 , "[INIT] start child[%d] creation" , i );
    58 display_string( string );
    59 #endif
    60 
    6155        // INIT process fork process CHILD[i]
    6256        ret_fork = fork();
     
    108102    for( x = 0 ; x < x_size ; x++ )
    109103    {
    110         cxy = HAL_CXY_FROM_XY( x , y );
    111         display_cluster_processes( cxy );
    112         for( lid = 0 ; lid < ncores ; lid++ )
    113         {
     104        for( y = 0 ; y < x_size ; y++ )
     105        {
     106            cxy = HAL_CXY_FROM_XY( x , y );
    114107            display_cluster_processes( cxy );
     108            for( lid = 0 ; lid < ncores ; lid++ )
     109            {
     110                display_sched( cxy , lid );
     111            }
    115112        }
    116113    }
     
    173170        } // end KSH kill handling
    174171
    175 #if DEBUG_PROCESS_INIT
    176 
    177         // INIT displays processes and threads in all clusters
    178         for( x = 0 ; x < x_size ; x++ )
    179         {
    180             for( y = 0 ; y < y_size ; y++ )
    181             {
    182                 cxy = HAL_CXY_FROM_XY( x , y );
    183                 display_cluster_processes( cxy );
    184                 for( lid = 0 ; lid < ncores ; lid++ )
    185                 {
    186                     display_sched( cxy , lid );
    187                 }
    188             }
    189         }
    190 
    191 #endif
    192 
    193172    }  // end while waiting KSH[i] termination
    194173
Note: See TracChangeset for help on using the changeset viewer.