Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] declaring xbt_log categories for tracing
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 6 Dec 2010 00:55:58 +0000 (00:55 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 6 Dec 2010 00:55:58 +0000 (00:55 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8993 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/instr_config.c
src/instr/instr_interface.c
src/instr/instr_msg_task.c
src/instr/instr_simdag.c
src/instr/instr_smpi.c
src/instr/instr_smx.c
src/instr/instr_surf.c

index f8a58a7..bad7e61 100644 (file)
@@ -9,6 +9,9 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
+XBT_LOG_NEW_CATEGORY(instr, "Logging the behavior of the tracing system (used for Visualization/Analysis of simulations)");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_config, instr, "Configuration");
+
 #define OPT_TRACING               "tracing"
 #define OPT_TRACING_SMPI          "tracing/smpi"
 #define OPT_TRACING_SMPI_GROUP    "tracing/smpi/group"
 #define OPT_TRACING               "tracing"
 #define OPT_TRACING_SMPI          "tracing/smpi"
 #define OPT_TRACING_SMPI_GROUP    "tracing/smpi/group"
index 550e2b9..48f916c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "instr/instr_private.h"
 
 
 #include "instr/instr_private.h"
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(tracing, "Tracing Interface");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API");
 
 static xbt_dict_t defined_types;
 xbt_dict_t created_categories;
 
 static xbt_dict_t defined_types;
 xbt_dict_t created_categories;
index 7238d8d..30f4d9b 100644 (file)
@@ -8,6 +8,8 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_msg, instr, "MSG");
+
 static xbt_dict_t task_containers = NULL;
 
 static char *TRACE_task_alias_container(m_task_t task, m_process_t process,
 static xbt_dict_t task_containers = NULL;
 
 static char *TRACE_task_alias_container(m_task_t task, m_process_t process,
index 7d05753..96b5bfe 100644 (file)
@@ -8,6 +8,8 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simdag, instr, "Tracing SimDAG");
+
 void TRACE_sd_task_create(SD_task_t task)
 {
   task->category = NULL;
 void TRACE_sd_task_create(SD_task_t task)
 {
   task->category = NULL;
index 6e5f495..abb1af1 100644 (file)
@@ -8,6 +8,8 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_smpi, instr, "Tracing SMPI");
+
 static xbt_dict_t keys;
 
 static char *TRACE_smpi_container(int rank, char *container, int n)
 static xbt_dict_t keys;
 
 static char *TRACE_smpi_container(int rank, char *container, int n)
index f82c6a4..75b8b3b 100644 (file)
@@ -8,6 +8,8 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simix, instr, "Tracing Simix");
+
 static long long int counter = 0;       /* to uniquely identify simix actions */
 
 void TRACE_smx_host_execute(smx_action_t act)
 static long long int counter = 0;       /* to uniquely identify simix actions */
 
 void TRACE_smx_host_execute(smx_action_t act)
index 381224b..e2c2d93 100644 (file)
@@ -9,7 +9,7 @@
 
 #ifdef HAVE_TRACING
 
 
 #ifdef HAVE_TRACING
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(tracing_surf, tracing, "Tracing Surf");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_surf, instr, "Tracing Surf");
 
 static xbt_dict_t created_links;
 static xbt_dict_t host_containers;
 
 static xbt_dict_t created_links;
 static xbt_dict_t host_containers;