git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8993
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
+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"
#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;
+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,
+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;
+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)
+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)
-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;