Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do connect all log channel manually to parent using XBT_LOG_CONNECT() too, so that...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 6 Mar 2008 10:26:18 +0000 (10:26 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 6 Mar 2008 10:26:18 +0000 (10:26 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5270 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/amok/base.c
src/gras/gras.c
src/msg/global.c
src/simdag/sd_global.c
src/simix/smx_config.c
src/smpi/smpi_base.c
src/surf/surf.c
src/xbt/xbt_main.c

index fa3b09e..07fcc40 100644 (file)
@@ -14,7 +14,12 @@ XBT_LOG_NEW_SUBCATEGORY(amok,XBT_LOG_ROOT_CAT,"All AMOK categories");
 
 void amok_base_init(void) {
   gras_datadesc_type_t host_desc;
-     
+
+  /* Connect our log channels: that must be done manually under windows */
+  XBT_LOG_CONNECT(amok_bw, amok);
+    XBT_LOG_CONNECT(amok_bw_sat, amok_bw);
+  XBT_LOG_CONNECT(amok_pm, amok);
+   
   /* Build the datatype descriptions */
   host_desc = gras_datadesc_struct("s_xbt_host_t");
   gras_datadesc_struct_append(host_desc,"name",gras_datadesc_by_name("string"));
index 63f1d6c..7bf5827 100644 (file)
@@ -60,6 +60,33 @@ void gras_init(int *argc,char **argv) {
    *    - declare process specific data we need (without creating them) 
    */
   if (gras_running_process == 0) {
+     /* Connect our log channels: that must be done manually under windows */
+     XBT_LOG_CONNECT(gras_ddt, gras);
+       XBT_LOG_CONNECT(gras_ddt_cbps, gras_ddt);
+       XBT_LOG_CONNECT(gras_ddt_convert, gras_ddt);
+       XBT_LOG_CONNECT(gras_ddt_create, gras_ddt);
+       XBT_LOG_CONNECT(gras_ddt_exchange, gras_ddt);
+       XBT_LOG_CONNECT(gras_ddt_lexer, gras_ddt_parse);
+       XBT_LOG_CONNECT(gras_ddt_parse, gras_ddt);
+     
+     XBT_LOG_CONNECT(gras_modules, gras);
+     
+     XBT_LOG_CONNECT(gras_msg, gras);
+       XBT_LOG_CONNECT(gras_msg_read, gras_msg);
+       XBT_LOG_CONNECT(gras_msg_rpc, gras_msg);
+     
+     XBT_LOG_CONNECT(gras_timer, gras);
+     
+     XBT_LOG_CONNECT(gras_trp, gras);
+       XBT_LOG_CONNECT(gras_trp_file, gras_trp);
+       XBT_LOG_CONNECT(gras_trp_meas, gras_trp);
+       XBT_LOG_CONNECT(gras_trp_sg, gras_trp);
+       XBT_LOG_CONNECT(gras_trp_tcp, gras_trp);
+     
+     XBT_LOG_CONNECT(gras_virtu, gras);
+       XBT_LOG_CONNECT(gras_virtu_emul, gras_virtu);
+       XBT_LOG_CONNECT(gras_virtu_process, gras_virtu);
+     
      gras_trp_register();
      gras_msg_register();
   }
index 3ab2eca..565788c 100644 (file)
@@ -46,6 +46,12 @@ void MSG_global_init(int *argc, char **argv)
 {
   xbt_getpid = MSG_process_self_PID;
   if (!msg_global) {
+    /* Connect our log channels: that must be done manually under windows */
+    XBT_LOG_CONNECT(msg_gos, msg);
+    XBT_LOG_CONNECT(msg_kernel, msg);
+    XBT_LOG_CONNECT(msg_mailbox, msg);
+    XBT_LOG_CONNECT(msg_process, msg);
+     
     SIMIX_global_init(argc, argv);
 
     msg_global = xbt_new0(s_MSG_Global_t, 1);
index 17d7ae5..27e445f 100644 (file)
@@ -73,6 +73,11 @@ static void sd_config_init(void)
   if (_sd_init_status)
     return;                    /* Already inited, nothing to do */
 
+  /* Connect our log channels: that must be done manually under windows */
+  XBT_LOG_CONNECT(sd_kernel, sd);
+  XBT_LOG_CONNECT(sd_task, sd);
+  XBT_LOG_CONNECT(sd_workstation, sd);
+   
   _sd_init_status = 1;
   _sd_cfg_set = xbt_cfg_new();
 
index 044e2b6..77d690f 100644 (file)
@@ -66,6 +66,15 @@ void simix_config_init(void)
   if (_simix_init_status)
     return;                    /* Already inited, nothing to do */
 
+  /* Connect our log channels: that must be done manually under windows */
+  XBT_LOG_CONNECT(simix_action, simix);
+  XBT_LOG_CONNECT(simix_deployment, simix);
+  XBT_LOG_CONNECT(simix_environment, simix);
+  XBT_LOG_CONNECT(simix_host, simix);
+  XBT_LOG_CONNECT(simix_kernel, simix);
+  XBT_LOG_CONNECT(simix_process, simix);
+  XBT_LOG_CONNECT(simix_synchro, simix);
+  
   _simix_init_status = 1;
   _simix_cfg_set = xbt_cfg_new();
 
index d923982..c119790 100644 (file)
@@ -43,6 +43,16 @@ void smpi_mpi_init()
        int i;
        smpi_host_data_t hdata;
 
+   /* Connect our log channels: that must be done manually under windows */
+   /* (should be done only once, not for each process) */
+   XBT_LOG_CONNECT(smpi_base, smpi);
+   XBT_LOG_CONNECT(smpi_bench, smpi);
+   XBT_LOG_CONNECT(smpi_kernel, smpi);
+   XBT_LOG_CONNECT(smpi_mpi, smpi);
+   XBT_LOG_CONNECT(smpi_receiver, smpi);
+   XBT_LOG_CONNECT(smpi_sender, smpi);
+   XBT_LOG_CONNECT(smpi_util, smpi);
+   
        SIMIX_mutex_lock(smpi_global->running_hosts_count_mutex);
        smpi_global->running_hosts_count++;
        SIMIX_mutex_unlock(smpi_global->running_hosts_count_mutex);
index 83bfde3..b46ade3 100644 (file)
@@ -307,6 +307,20 @@ void surf_init(int *argc, char **argv)
 
   const char *initial_path;
 
+  /* Connect our log channels: that must be done manually under windows */
+  XBT_LOG_CONNECT(surf_cpu, surf);
+  XBT_LOG_CONNECT(surf_kernel, surf);
+  XBT_LOG_CONNECT(surf_lagrange_dichotomy, surf_lagrange);
+  XBT_LOG_CONNECT(surf_lagrange, surf);
+  XBT_LOG_CONNECT(surf_maxmin, surf);
+  XBT_LOG_CONNECT(surf_network_gtnets, surf);
+  XBT_LOG_CONNECT(surf_network, surf);
+  XBT_LOG_CONNECT(surf_parse, surf);
+  XBT_LOG_CONNECT(surf_sdp_out, surf);
+  XBT_LOG_CONNECT(surf_sdp, surf);
+  XBT_LOG_CONNECT(surf_timer, surf);
+  XBT_LOG_CONNECT(surf_workstation, surf);
+   
   xbt_init(argc, argv);
   if (!surf_path) {
 
index bba945c..00de65f 100644 (file)
@@ -31,6 +31,31 @@ xbt_init(int *argc, char **argv) {
   if (xbt_initialized!=1)
     return;
 
+  /* Connect our log channels: that must be done manually under windows */
+  XBT_LOG_CONNECT(graphxml_parse, xbt);
+  XBT_LOG_CONNECT(log, xbt);
+  XBT_LOG_CONNECT(module, xbt);
+  XBT_LOG_CONNECT(peer, xbt);
+  XBT_LOG_CONNECT(strbuff, xbt);
+  XBT_LOG_CONNECT(xbt_cfg, xbt);
+  XBT_LOG_CONNECT(xbt_dict_add, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict_collapse, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict_cursor, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict_elm, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict_multi, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict_remove, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict_search, xbt_dict);
+  XBT_LOG_CONNECT(xbt_dict, xbt);
+  XBT_LOG_CONNECT(xbt_dyn, xbt);
+  XBT_LOG_CONNECT(xbt_ex, xbt);
+  XBT_LOG_CONNECT(xbt_fifo, xbt);
+  XBT_LOG_CONNECT(xbt_graph, xbt);
+  XBT_LOG_CONNECT(xbt_matrix, xbt);
+  XBT_LOG_CONNECT(xbt_queue, xbt);
+  XBT_LOG_CONNECT(xbt_set, xbt);
+  XBT_LOG_CONNECT(xbt_sync_os, xbt);
+  XBT_LOG_CONNECT(xbt_sync_rl, xbt);
+   
   xbt_binary_name = xbt_strdup(argv[0]);
   srand((unsigned int)time(NULL));
   VERB0("Initialize XBT");